@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreatePolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
CreatePolicyRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreatePolicyRequest |
clone() |
boolean |
equals(Object obj) |
String |
getContent()
The policy content to add to the new OCP.
|
String |
getDescription()
An optional description to assign to the OCP.
|
String |
getName()
The friendly name to assign to the OCP.
|
String |
getType()
The type of OCP to create.
|
int |
hashCode() |
void |
setContent(String content)
The policy content to add to the new OCP.
|
void |
setDescription(String description)
An optional description to assign to the OCP.
|
void |
setName(String name)
The friendly name to assign to the OCP.
|
void |
setType(PolicyType type)
The type of OCP to create.
|
void |
setType(String type)
The type of OCP to create.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
CreatePolicyRequest |
withContent(String content)
The policy content to add to the new OCP.
|
CreatePolicyRequest |
withDescription(String description)
An optional description to assign to the OCP.
|
CreatePolicyRequest |
withName(String name)
The friendly name to assign to the OCP.
|
CreatePolicyRequest |
withType(PolicyType type)
The type of OCP to create.
|
CreatePolicyRequest |
withType(String type)
The type of OCP to create.
|
addHandlerContext, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setContent(String content)
The policy content to add to the new OCP. For example, if you create a service control policy (SCP), this string must be JSON text that specifies the permissions that admins in attached accounts can delegate to their users, groups, and roles. For more information about the SCP syntax, see Syntax for SCPs in the AWS Organizations User Guide.
content - The policy content to add to the new OCP. For example, if you create a service
control policy (SCP), this string must be JSON text that specifies the permissions that admins in
attached accounts can delegate to their users, groups, and roles. For more information about the SCP
syntax, see Syntax for SCPs in the AWS Organizations User Guide.public String getContent()
The policy content to add to the new OCP. For example, if you create a service control policy (SCP), this string must be JSON text that specifies the permissions that admins in attached accounts can delegate to their users, groups, and roles. For more information about the SCP syntax, see Syntax for SCPs in the AWS Organizations User Guide.
public CreatePolicyRequest withContent(String content)
The policy content to add to the new OCP. For example, if you create a service control policy (SCP), this string must be JSON text that specifies the permissions that admins in attached accounts can delegate to their users, groups, and roles. For more information about the SCP syntax, see Syntax for SCPs in the AWS Organizations User Guide.
content - The policy content to add to the new OCP. For example, if you create a service
control policy (SCP), this string must be JSON text that specifies the permissions that admins in
attached accounts can delegate to their users, groups, and roles. For more information about the SCP
syntax, see Syntax for SCPs in the AWS Organizations User Guide.public void setDescription(String description)
An optional description to assign to the OCP.
description - An optional description to assign to the OCP.public String getDescription()
An optional description to assign to the OCP.
public CreatePolicyRequest withDescription(String description)
An optional description to assign to the OCP.
description - An optional description to assign to the OCP.public void setName(String name)
The friendly name to assign to the OCP.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
name - The friendly name to assign to the OCP.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
public String getName()
The friendly name to assign to the OCP.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
public CreatePolicyRequest withName(String name)
The friendly name to assign to the OCP.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
name - The friendly name to assign to the OCP.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
public void setType(String type)
The type of OCP to create.
In the current release, the only type of OCP that you can create is a service control policy (SCP).
type - The type of OCP to create. In the current release, the only type of OCP that you can create is a service control policy (SCP).
PolicyTypepublic String getType()
The type of OCP to create.
In the current release, the only type of OCP that you can create is a service control policy (SCP).
In the current release, the only type of OCP that you can create is a service control policy (SCP).
PolicyTypepublic CreatePolicyRequest withType(String type)
The type of OCP to create.
In the current release, the only type of OCP that you can create is a service control policy (SCP).
type - The type of OCP to create. In the current release, the only type of OCP that you can create is a service control policy (SCP).
PolicyTypepublic void setType(PolicyType type)
The type of OCP to create.
In the current release, the only type of OCP that you can create is a service control policy (SCP).
type - The type of OCP to create. In the current release, the only type of OCP that you can create is a service control policy (SCP).
PolicyTypepublic CreatePolicyRequest withType(PolicyType type)
The type of OCP to create.
In the current release, the only type of OCP that you can create is a service control policy (SCP).
type - The type of OCP to create. In the current release, the only type of OCP that you can create is a service control policy (SCP).
PolicyTypepublic String toString()
toString in class ObjectObject.toString()public CreatePolicyRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2017. All rights reserved.