|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.cloudformation.model.SetStackPolicyRequest
public class SetStackPolicyRequest
Container for the parameters to the SetStackPolicy operation
.
Sets a stack policy for a specified stack.
AmazonCloudFormation.setStackPolicy(SetStackPolicyRequest)
,
Serialized FormConstructor Summary | |
---|---|
SetStackPolicyRequest()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getStackName()
The name or 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 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 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 |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SetStackPolicyRequest()
Method Detail |
---|
public String getStackName()
public void setStackName(String stackName)
stackName
- The name or stack ID that you want to associate a policy with.public SetStackPolicyRequest withStackName(String stackName)
Returns a reference to this object so that method calls can be chained together.
stackName
- The name or stack ID that you want to associate a policy with.
public String getStackPolicyBody()
StackPolicyBody
or the
StackPolicyURL
parameter, but not both.
Constraints:
Length: 1 - 16384
StackPolicyBody
or the
StackPolicyURL
parameter, but not both.public void setStackPolicyBody(String stackPolicyBody)
StackPolicyBody
or the
StackPolicyURL
parameter, but not both.
Constraints:
Length: 1 - 16384
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 the
StackPolicyURL
parameter, but not both.public SetStackPolicyRequest withStackPolicyBody(String stackPolicyBody)
StackPolicyBody
or the
StackPolicyURL
parameter, but not both.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 16384
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 the
StackPolicyURL
parameter, but not both.
public String getStackPolicyURL()
StackPolicyBody
or the StackPolicyURL
parameter, but not both.
Constraints:
Length: 1 - 1350
StackPolicyBody
or the StackPolicyURL
parameter, but not both.public void setStackPolicyURL(String stackPolicyURL)
StackPolicyBody
or the StackPolicyURL
parameter, but not both.
Constraints:
Length: 1 - 1350
stackPolicyURL
- Location of a file containing the stack policy. The URL must point to
a policy (max size: 16KB) located in an S3 bucket in the same region
as the stack. You can specify either the StackPolicyBody
or the StackPolicyURL
parameter, but not both.public SetStackPolicyRequest withStackPolicyURL(String stackPolicyURL)
StackPolicyBody
or the StackPolicyURL
parameter, but not both.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1350
stackPolicyURL
- Location of a file containing the stack policy. The URL must point to
a policy (max size: 16KB) located in an S3 bucket in the same region
as the stack. You can specify either the StackPolicyBody
or the StackPolicyURL
parameter, but not both.
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |