com.amazonaws.services.cloudformation.model
Class SetStackPolicyRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.cloudformation.model.SetStackPolicyRequest
All Implemented Interfaces:
Serializable

public class SetStackPolicyRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the SetStackPolicy operation.

Sets a stack policy for a specified stack.

See Also:
AmazonCloudFormation.setStackPolicy(SetStackPolicyRequest), Serialized Form

Constructor 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

SetStackPolicyRequest

public SetStackPolicyRequest()
Method Detail

getStackName

public String getStackName()
The name or stack ID that you want to associate a policy with.

Returns:
The name or stack ID that you want to associate a policy with.

setStackName

public void setStackName(String stackName)
The name or stack ID that you want to associate a policy with.

Parameters:
stackName - The name or stack ID that you want to associate a policy with.

withStackName

public SetStackPolicyRequest withStackName(String stackName)
The name or stack ID that you want to associate a policy with.

Returns a reference to this object so that method calls can be chained together.

Parameters:
stackName - The name or stack ID that you want to associate a policy with.
Returns:
A reference to this updated object so that method calls can be chained together.

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 the StackPolicyURL parameter, but not both.

Constraints:
Length: 1 - 16384

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 the StackPolicyURL parameter, but not both.

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 the StackPolicyURL parameter, but not both.

Constraints:
Length: 1 - 16384

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 the StackPolicyBody or the StackPolicyURL 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 the StackPolicyURL parameter, but not both.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 16384

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 the StackPolicyBody or the StackPolicyURL parameter, but not both.
Returns:
A reference to this updated object so that method calls can be chained together.

getStackPolicyURL

public String getStackPolicyURL()
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.

Constraints:
Length: 1 - 1350

Returns:
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.

setStackPolicyURL

public void setStackPolicyURL(String 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.

Constraints:
Length: 1 - 1350

Parameters:
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.

withStackPolicyURL

public SetStackPolicyRequest withStackPolicyURL(String 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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 1350

Parameters:
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.
Returns:
A reference to this updated 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 class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2016. All rights reserved.