@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()
Creates a shallow clone of this object for all fields except the handler context.
|
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, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public 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).
PolicyType
public 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).
PolicyType
public 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).
PolicyType
public 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).
PolicyType
public 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).
PolicyType
public String toString()
toString
in class Object
Object.toString()
public CreatePolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.