@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SetStackPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
The input for the SetStackPolicy action.
NOOP
Constructor and Description |
---|
SetStackPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
SetStackPolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getStackName()
The name or unique stack ID that you want to associate a policy with.
|
String |
getStackPolicyBody()
Structure containing the stack policy body.
|
String |
getStackPolicyURL()
Location of a file containing the stack policy.
|
int |
hashCode() |
void |
setStackName(String stackName)
The name or unique stack ID that you want to associate a policy with.
|
void |
setStackPolicyBody(String stackPolicyBody)
Structure containing the stack policy body.
|
void |
setStackPolicyURL(String stackPolicyURL)
Location of a file containing the stack policy.
|
String |
toString()
Returns a string representation of this object.
|
SetStackPolicyRequest |
withStackName(String stackName)
The name or unique stack ID that you want to associate a policy with.
|
SetStackPolicyRequest |
withStackPolicyBody(String stackPolicyBody)
Structure containing the stack policy body.
|
SetStackPolicyRequest |
withStackPolicyURL(String stackPolicyURL)
Location of a file containing the stack policy.
|
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 setStackName(String stackName)
The name or unique stack ID that you want to associate a policy with.
stackName
- The name or unique stack ID that you want to associate a policy with.public String getStackName()
The name or unique stack ID that you want to associate a policy with.
public SetStackPolicyRequest withStackName(String stackName)
The name or unique stack ID that you want to associate a policy with.
stackName
- The name or unique stack ID that you want to associate a policy with.public void setStackPolicyBody(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 the StackPolicyURL
parameter, but not both.
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 the StackPolicyURL
parameter, but not both.public String getStackPolicyBody()
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 the StackPolicyURL
parameter, but not both.
StackPolicyBody
or the StackPolicyURL
parameter, but not both.public SetStackPolicyRequest withStackPolicyBody(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 the StackPolicyURL
parameter, but not both.
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 the StackPolicyURL
parameter, but not both.public void setStackPolicyURL(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 the StackPolicyBody
or the
StackPolicyURL
parameter, but not both.
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 the
StackPolicyBody
or the StackPolicyURL
parameter, but not both.public String getStackPolicyURL()
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 the StackPolicyBody
or the
StackPolicyURL
parameter, but not both.
https://
. You can specify either the
StackPolicyBody
or the StackPolicyURL
parameter, but not both.public SetStackPolicyRequest withStackPolicyURL(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 the StackPolicyBody
or the
StackPolicyURL
parameter, but not both.
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 the
StackPolicyBody
or the StackPolicyURL
parameter, but not both.public String toString()
toString
in class Object
Object.toString()
public SetStackPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()