Class EnablePolicyTypeRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.organizations.model.OrganizationsRequest
-
- software.amazon.awssdk.services.organizations.model.EnablePolicyTypeRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<EnablePolicyTypeRequest.Builder,EnablePolicyTypeRequest>
@Generated("software.amazon.awssdk:codegen") public final class EnablePolicyTypeRequest extends OrganizationsRequest implements ToCopyableBuilder<EnablePolicyTypeRequest.Builder,EnablePolicyTypeRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEnablePolicyTypeRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EnablePolicyTypeRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()PolicyTypepolicyType()The policy type that you want to enable.StringpolicyTypeAsString()The policy type that you want to enable.StringrootId()The unique identifier (ID) of the root in which you want to enable a policy type.List<SdkField<?>>sdkFields()static Class<? extends EnablePolicyTypeRequest.Builder>serializableBuilderClass()EnablePolicyTypeRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
rootId
public final String rootId()
The unique identifier (ID) of the root in which you want to enable a policy type. You can get the ID from the ListRoots operation.
The regex pattern for a root ID string requires "r-" followed by from 4 to 32 lowercase letters or digits.
- Returns:
- The unique identifier (ID) of the root in which you want to enable a policy type. You can get the ID from
the ListRoots operation.
The regex pattern for a root ID string requires "r-" followed by from 4 to 32 lowercase letters or digits.
-
policyType
public final PolicyType policyType()
The policy type that you want to enable. You can specify one of the following values:
If the service returns an enum value that is not available in the current SDK version,
policyTypewill returnPolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompolicyTypeAsString().- Returns:
- The policy type that you want to enable. You can specify one of the following values:
- See Also:
PolicyType
-
policyTypeAsString
public final String policyTypeAsString()
The policy type that you want to enable. You can specify one of the following values:
If the service returns an enum value that is not available in the current SDK version,
policyTypewill returnPolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompolicyTypeAsString().- Returns:
- The policy type that you want to enable. You can specify one of the following values:
- See Also:
PolicyType
-
toBuilder
public EnablePolicyTypeRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<EnablePolicyTypeRequest.Builder,EnablePolicyTypeRequest>- Specified by:
toBuilderin classOrganizationsRequest
-
builder
public static EnablePolicyTypeRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends EnablePolicyTypeRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-