com.amazonaws.services.cloudformation.model
Class GetStackPolicyRequest

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

public class GetStackPolicyRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the GetStackPolicy operation.

Returns the stack policy for a specified stack. If a stack doesn't have a policy, a null value is returned.

See Also:
AmazonCloudFormation.getStackPolicy(GetStackPolicyRequest), Serialized Form

Constructor Summary
GetStackPolicyRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getStackName()
          The name or stack ID that is associated with the stack whose policy you want to get.
 int hashCode()
           
 void setStackName(String stackName)
          The name or stack ID that is associated with the stack whose policy you want to get.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 GetStackPolicyRequest withStackName(String stackName)
          The name or stack ID that is associated with the stack whose policy you want to get.
 
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

GetStackPolicyRequest

public GetStackPolicyRequest()
Method Detail

getStackName

public String getStackName()
The name or stack ID that is associated with the stack whose policy you want to get.

Returns:
The name or stack ID that is associated with the stack whose policy you want to get.

setStackName

public void setStackName(String stackName)
The name or stack ID that is associated with the stack whose policy you want to get.

Parameters:
stackName - The name or stack ID that is associated with the stack whose policy you want to get.

withStackName

public GetStackPolicyRequest withStackName(String stackName)
The name or stack ID that is associated with the stack whose policy you want to get.

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

Parameters:
stackName - The name or stack ID that is associated with the stack whose policy you want to get.
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.