public class SetStackPolicyRequest extends AmazonWebServiceRequest implements Serializable
SetStackPolicy operation
.
Sets a stack policy for a specified stack.
Constructor and Description |
---|
SetStackPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
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.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
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()
You must pass
StackPolicyBody
or StackPolicyURL
. If both
are passed, only StackPolicyBody
is used.
Constraints:
Length: 1 - 16384
You must pass
StackPolicyBody
or StackPolicyURL
. If both
are passed, only StackPolicyBody
is used.
public void setStackPolicyBody(String stackPolicyBody)
You must pass
StackPolicyBody
or StackPolicyURL
. If both
are passed, only StackPolicyBody
is used.
Constraints:
Length: 1 - 16384
stackPolicyBody
- Structure containing the stack policy body. (For more information, go
to the
AWS CloudFormation User Guide.) You must pass
StackPolicyBody
or StackPolicyURL
. If both
are passed, only StackPolicyBody
is used.
public SetStackPolicyRequest withStackPolicyBody(String stackPolicyBody)
You must pass
StackPolicyBody
or StackPolicyURL
. If both
are passed, only StackPolicyBody
is used.
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 the
AWS CloudFormation User Guide.) You must pass
StackPolicyBody
or StackPolicyURL
. If both
are passed, only StackPolicyBody
is used.
public String getStackPolicyURL()
StackPolicyBody
or
StackPolicyURL
. If both are passed, only
StackPolicyBody
is used.
Constraints:
Length: 1 - 1350
StackPolicyBody
or
StackPolicyURL
. If both are passed, only
StackPolicyBody
is used.public void setStackPolicyURL(String stackPolicyURL)
StackPolicyBody
or
StackPolicyURL
. If both are passed, only
StackPolicyBody
is used.
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 must pass StackPolicyBody
or
StackPolicyURL
. If both are passed, only
StackPolicyBody
is used.public SetStackPolicyRequest withStackPolicyURL(String stackPolicyURL)
StackPolicyBody
or
StackPolicyURL
. If both are passed, only
StackPolicyBody
is used.
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 must pass StackPolicyBody
or
StackPolicyURL
. If both are passed, only
StackPolicyBody
is used.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.