@Generated(value="software.amazon.awssdk:codegen") public class CreatePolicyRequest extends OrganizationsRequest implements ToCopyableBuilder<CreatePolicyRequest.Builder,CreatePolicyRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
CreatePolicyRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static CreatePolicyRequest.Builder |
builder() |
String |
content()
The policy content to add to the new policy.
|
String |
description()
An optional description to assign to the policy.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
String |
name()
The friendly name to assign to the policy.
|
static Class<? extends CreatePolicyRequest.Builder> |
serializableBuilderClass() |
CreatePolicyRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
PolicyType |
type()
The type of policy to create.
|
String |
typeString()
The type of policy to create.
|
requestOverrideConfig
copy
public 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.
public String description()
An optional description to assign to the policy.
public 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.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
public 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).
If the service returns an enum value that is not available in the current SDK version, type
will return
PolicyType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeString()
.
In the current release, the only type of policy that you can create is a service control policy (SCP).
PolicyType
public String typeString()
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).
If the service returns an enum value that is not available in the current SDK version, type
will return
PolicyType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeString()
.
In the current release, the only type of policy that you can create is a service control policy (SCP).
PolicyType
public CreatePolicyRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreatePolicyRequest.Builder,CreatePolicyRequest>
toBuilder
in class OrganizationsRequest
public static CreatePolicyRequest.Builder builder()
public static Class<? extends CreatePolicyRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.