Class SetStackPolicyRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.cloudformation.model.SetStackPolicyRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class SetStackPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
The input for the SetStackPolicy action.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description SetStackPolicyRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SetStackPolicyRequest
clone()
Creates a shallow clone of this request.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; useful for testing and debugging.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.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setStackName
public void setStackName(String stackName)
The name or unique stack ID that you want to associate a policy with.
- Parameters:
stackName
- The name or unique stack ID that you want to associate a policy with.
-
getStackName
public String getStackName()
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.
-
withStackName
public SetStackPolicyRequest withStackName(String stackName)
The name or unique stack ID that you want to associate a policy with.
- Parameters:
stackName
- The name or unique stack ID that you want to associate a policy with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStackPolicyBody
public void setStackPolicyBody(String stackPolicyBody)
Structure containing the stack policy body. For more information, go to Prevent Updates to Stack Resources in the AWS CloudFormation User Guide. You can specify either the
StackPolicyBody
or theStackPolicyURL
parameter, but not both.- Parameters:
stackPolicyBody
- Structure containing the stack policy body. For more information, go to Prevent Updates to Stack Resources in the AWS CloudFormation User Guide. You can specify either theStackPolicyBody
or theStackPolicyURL
parameter, but not both.
-
getStackPolicyBody
public String getStackPolicyBody()
Structure containing the stack policy body. For more information, go to Prevent Updates to Stack Resources in the AWS 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 AWS
CloudFormation User Guide. You can specify either the
StackPolicyBody
or theStackPolicyURL
parameter, but not both.
-
withStackPolicyBody
public SetStackPolicyRequest withStackPolicyBody(String stackPolicyBody)
Structure containing the stack policy body. For more information, go to Prevent Updates to Stack Resources in the AWS CloudFormation User Guide. You can specify either the
StackPolicyBody
or theStackPolicyURL
parameter, but not both.- Parameters:
stackPolicyBody
- Structure containing the stack policy body. For more information, go to Prevent Updates to Stack Resources in the AWS CloudFormation User Guide. You can specify either theStackPolicyBody
or theStackPolicyURL
parameter, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStackPolicyURL
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 S3 bucket in the same region as the stack. You can specify either the
StackPolicyBody
or theStackPolicyURL
parameter, but not both.- Parameters:
stackPolicyURL
- Location of a file containing the stack policy. The URL must point to a policy (maximum size: 16 KB) located in an S3 bucket in the same region as the stack. You can specify either theStackPolicyBody
or theStackPolicyURL
parameter, but not both.
-
getStackPolicyURL
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 S3 bucket in the same 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 S3 bucket
in the same region as the stack. You can specify either the
StackPolicyBody
or theStackPolicyURL
parameter, but not both.
-
withStackPolicyURL
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 S3 bucket in the same region as the stack. You can specify either the
StackPolicyBody
or theStackPolicyURL
parameter, but not both.- Parameters:
stackPolicyURL
- Location of a file containing the stack policy. The URL must point to a policy (maximum size: 16 KB) located in an S3 bucket in the same region as the stack. You can specify either theStackPolicyBody
or theStackPolicyURL
parameter, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SetStackPolicyRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-