@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 policy.
|
String |
getDescription()
An optional description to assign to the policy.
|
String |
getName()
The friendly name to assign to the policy.
|
String |
getType()
The type of policy to create.
|
int |
hashCode() |
void |
setContent(String content)
The policy content to add to the new policy.
|
void |
setDescription(String description)
An optional description to assign to the policy.
|
void |
setName(String name)
The friendly name to assign to the policy.
|
void |
setType(PolicyType type)
The type of policy to create.
|
void |
setType(String type)
The type of policy 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 policy.
|
CreatePolicyRequest |
withDescription(String description)
An optional description to assign to the policy.
|
CreatePolicyRequest |
withName(String name)
The friendly name to assign to the policy.
|
CreatePolicyRequest |
withType(PolicyType type)
The type of policy to create.
|
CreatePolicyRequest |
withType(String type)
The type of policy 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, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setContent(String content)
The policy content to add to the new policy. 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 Service Control Policy Syntax in the AWS Organizations User Guide.
content
- The policy content to add to the new policy. 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 Service
Control Policy Syntax in the AWS Organizations User Guide.public String getContent()
The policy content to add to the new policy. 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 Service Control Policy Syntax in the AWS Organizations User Guide.
public CreatePolicyRequest withContent(String content)
The policy content to add to the new policy. 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 Service Control Policy Syntax in the AWS Organizations User Guide.
content
- The policy content to add to the new policy. 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 Service
Control Policy Syntax in the AWS Organizations User Guide.public void setDescription(String description)
An optional description to assign to the policy.
description
- An optional description to assign to the policy.public String getDescription()
An optional description to assign to the policy.
public CreatePolicyRequest withDescription(String description)
An optional description to assign to the policy.
description
- An optional description to assign to the policy.public void setName(String name)
The friendly name to assign to the policy.
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 policy.
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 policy.
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 policy.
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 policy.
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 policy to create.
In the current release, the only type of policy that you can create is a service control policy (SCP).
type
- The type of policy to create. In the current release, the only type of policy that you can create is a service control policy (SCP).
PolicyType
public String getType()
The type of policy to create.
In the current release, the only type of policy that you can create is a service control policy (SCP).
In the current release, the only type of policy that you can create is a service control policy (SCP).
PolicyType
public CreatePolicyRequest withType(String type)
The type of policy to create.
In the current release, the only type of policy that you can create is a service control policy (SCP).
type
- The type of policy to create. In the current release, the only type of policy that you can create is a service control policy (SCP).
PolicyType
public void setType(PolicyType type)
The type of policy to create.
In the current release, the only type of policy that you can create is a service control policy (SCP).
type
- The type of policy to create. In the current release, the only type of policy that you can create is a service control policy (SCP).
PolicyType
public CreatePolicyRequest withType(PolicyType type)
The type of policy to create.
In the current release, the only type of policy that you can create is a service control policy (SCP).
type
- The type of policy to create. In the current release, the only type of policy 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.