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 interface
SetStackPolicyRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SetStackPolicyRequest.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
List<SdkField<?>>
sdkFields()
static Class<? extends SetStackPolicyRequest.Builder>
serializableBuilderClass()
String
stackName()
The name or unique stack ID that you want to associate a policy with.String
stackPolicyBody()
Structure containing the stack policy body.String
stackPolicyURL()
Location of a file containing the stack policy.SetStackPolicyRequest.Builder
toBuilder()
String
toString()
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, go to Prevent updates to stack resources in the CloudFormation User Guide. You can specify either the
StackPolicyBody
or theStackPolicyURL
parameter, but not both.- Returns:
- Structure containing the stack policy body. For more information, go to
Prevent updates to stack resources in the CloudFormation User Guide. You can specify either
the
StackPolicyBody
or theStackPolicyURL
parameter, 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. You can specify either the
StackPolicyBody
or theStackPolicyURL
parameter, 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. You can specify
either the
StackPolicyBody
or theStackPolicyURL
parameter, but not both.
-
toBuilder
public SetStackPolicyRequest.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<SetStackPolicyRequest.Builder,SetStackPolicyRequest>
- Specified by:
toBuilder
in classCloudFormationRequest
-
builder
public static SetStackPolicyRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends SetStackPolicyRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equals
in classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in 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:
getValueForField
in classSdkRequest
-
-