public class PolicyReaderOptions extends Object
Policy.fromJson(String, PolicyReaderOptions)
will generate a Policy.Constructor and Description |
---|
PolicyReaderOptions() |
Modifier and Type | Method and Description |
---|---|
boolean |
isStripAwsPrincipalIdHyphensEnabled()
Whether AWS principal IDs should have hyphens removed in their name.
|
void |
setStripAwsPrincipalIdHyphensEnabled(boolean stripAwsPrincipalIdHyphensEnabled)
Configure whether hyphens should be stripped from the AWS principal IDs that are read from the JSON-formatted
policy document.
|
PolicyReaderOptions |
withStripAwsPrincipalIdHyphensEnabled(boolean stripAwsPrincipalIdHyphensEnabled)
Fluent-style setter for
setStripAwsPrincipalIdHyphensEnabled(boolean) that returns "this" for chaining. |
public boolean isStripAwsPrincipalIdHyphensEnabled()
public void setStripAwsPrincipalIdHyphensEnabled(boolean stripAwsPrincipalIdHyphensEnabled)
public PolicyReaderOptions withStripAwsPrincipalIdHyphensEnabled(boolean stripAwsPrincipalIdHyphensEnabled)
setStripAwsPrincipalIdHyphensEnabled(boolean)
that returns "this" for chaining.Copyright © 2021. All rights reserved.