Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License").
   * You may not use this file except in compliance with the License.
   * A copy of the License is located at
   * 
   *  http://aws.amazon.com/apache2.0
   * 
  * or in the "license" file accompanying this file. This file is distributed
  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  * express or implied. See the License for the specific language governing
  * permissions and limitations under the License.
  */
 package com.amazonaws.services.opsworks.model;
 

Contains the response to a DescribeStackProvisioningParameters request.

 
 public class DescribeStackProvisioningParametersResult implements SerializableCloneable {

    
The AWS OpsWorks agent installer's URL.
 
     private String agentInstallerUrl;

    
An embedded object that contains the provisioning parameters.
 
     private java.util.Map<String,Stringparameters;

    
The AWS OpsWorks agent installer's URL.

Returns:
The AWS OpsWorks agent installer's URL.
 
     public String getAgentInstallerUrl() {
         return ;
     }
    
    
The AWS OpsWorks agent installer's URL.

Parameters:
agentInstallerUrl The AWS OpsWorks agent installer's URL.
 
     public void setAgentInstallerUrl(String agentInstallerUrl) {
         this. = agentInstallerUrl;
     }
    
    
The AWS OpsWorks agent installer's URL.

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

Parameters:
agentInstallerUrl The AWS OpsWorks agent installer's URL.
Returns:
A reference to this updated object so that method calls can be chained together.
 
         this. = agentInstallerUrl;
         return this;
     }

    
An embedded object that contains the provisioning parameters.

Returns:
An embedded object that contains the provisioning parameters.
 
     public java.util.Map<String,StringgetParameters() {
         
         if ( == null) {
              = new java.util.HashMap<String,String>();
         }
         return ;
     }
    
    
An embedded object that contains the provisioning parameters.

Parameters:
parameters An embedded object that contains the provisioning parameters.
 
     public void setParameters(java.util.Map<String,Stringparameters) {
         this. = parameters;
     }
    
    
An embedded object that contains the provisioning parameters.

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

Parameters:
parameters An embedded object that contains the provisioning parameters.
Returns:
A reference to this updated object so that method calls can be chained together.
        setParameters(parameters);
        return this;
    }

    
An embedded object that contains the provisioning parameters.

The method adds a new key-value pair into Parameters parameter, and returns a reference to this object so that method calls can be chained together.

Parameters:
key The key of the entry to be added into Parameters.
value The corresponding value of the entry to be added into Parameters.
    if (null == this.) {
      this. = new java.util.HashMap<String,String>();
    }
    if (this..containsKey(key))
      throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
    this..put(keyvalue);
    return this;
  }

  
Removes all the entries added into Parameters.

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

    this. = null;
    return this;
  }
  
    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getAgentInstallerUrl() != nullsb.append("AgentInstallerUrl: " + getAgentInstallerUrl() + ",");
        if (getParameters() != nullsb.append("Parameters: " + getParameters() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getAgentInstallerUrl() == null) ? 0 : getAgentInstallerUrl().hashCode()); 
        hashCode = prime * hashCode + ((getParameters() == null) ? 0 : getParameters().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof DescribeStackProvisioningParametersResult == falsereturn false;
        
        if (other.getAgentInstallerUrl() == null ^ this.getAgentInstallerUrl() == nullreturn false;
        if (other.getAgentInstallerUrl() != null && other.getAgentInstallerUrl().equals(this.getAgentInstallerUrl()) == falsereturn false
        if (other.getParameters() == null ^ this.getParameters() == nullreturn false;
        if (other.getParameters() != null && other.getParameters().equals(this.getParameters()) == falsereturn false
        return true;
    }
    
    @Override
        try {
            return (DescribeStackProvisioningParametersResultsuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X