Class SetStackPolicyRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.cloudformation.model.CloudFormationRequest
-
- software.amazon.awssdk.services.cloudformation.model.SetStackPolicyRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<SetStackPolicyRequest.Builder,SetStackPolicyRequest>
@Generated("software.amazon.awssdk:codegen") public final class SetStackPolicyRequest extends CloudFormationRequest implements ToCopyableBuilder<SetStackPolicyRequest.Builder,SetStackPolicyRequest>
The input for the SetStackPolicy action.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSetStackPolicyRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SetStackPolicyRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends SetStackPolicyRequest.Builder>serializableBuilderClass()StringstackName()The name or unique stack ID that you want to associate a policy with.StringstackPolicyBody()Structure containing the stack policy body.StringstackPolicyURL()Location of a file containing the stack policy.SetStackPolicyRequest.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
-
stackName
public final String stackName()
The name or unique stack ID that you want to associate a policy with.
- Returns:
- The name or unique stack ID that you want to associate a policy with.
-
stackPolicyBody
public final String stackPolicyBody()
Structure containing the stack policy body. For more information, see Prevent updates to stack resources in the CloudFormation User Guide. You can specify either the
StackPolicyBodyor theStackPolicyURLparameter, but not both.- Returns:
- Structure containing the stack policy body. For more information, see Prevent updates to stack resources in the CloudFormation User Guide. You can specify either
the
StackPolicyBodyor theStackPolicyURLparameter, but not both.
-
stackPolicyURL
public final String stackPolicyURL()
Location of a file containing the stack policy. The URL must point to a policy (maximum size: 16 KB) located in an Amazon S3 bucket in the same Amazon Web Services Region as the stack. The location for an Amazon S3 bucket must start with
https://. You can specify either theStackPolicyBodyor theStackPolicyURLparameter, but not both.- Returns:
- Location of a file containing the stack policy. The URL must point to a policy (maximum size: 16 KB)
located in an Amazon S3 bucket in the same Amazon Web Services Region as the stack. The location for an
Amazon S3 bucket must start with
https://. You can specify either theStackPolicyBodyor theStackPolicyURLparameter, but not both.
-
toBuilder
public SetStackPolicyRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SetStackPolicyRequest.Builder,SetStackPolicyRequest>- Specified by:
toBuilderin classCloudFormationRequest
-
builder
public static SetStackPolicyRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends SetStackPolicyRequest.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
-
-