All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.appstream.model.CreateStackRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon AppStream module holds the client classes that are used for communicating with Amazon AppStream.

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2012-2017 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.appstream.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateStackRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The unique identifier for this stack. *

*/ private String name; /** *

* The description displayed to end users on the AppStream 2.0 portal. *

*/ private String description; /** *

* The name displayed to end users on the AppStream 2.0 portal. *

*/ private String displayName; /** *

* The storage connectors to be enabled for the stack. *

*/ private java.util.List storageConnectors; /** *

* The unique identifier for this stack. *

* * @param name * The unique identifier for this stack. */ public void setName(String name) { this.name = name; } /** *

* The unique identifier for this stack. *

* * @return The unique identifier for this stack. */ public String getName() { return this.name; } /** *

* The unique identifier for this stack. *

* * @param name * The unique identifier for this stack. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateStackRequest withName(String name) { setName(name); return this; } /** *

* The description displayed to end users on the AppStream 2.0 portal. *

* * @param description * The description displayed to end users on the AppStream 2.0 portal. */ public void setDescription(String description) { this.description = description; } /** *

* The description displayed to end users on the AppStream 2.0 portal. *

* * @return The description displayed to end users on the AppStream 2.0 portal. */ public String getDescription() { return this.description; } /** *

* The description displayed to end users on the AppStream 2.0 portal. *

* * @param description * The description displayed to end users on the AppStream 2.0 portal. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateStackRequest withDescription(String description) { setDescription(description); return this; } /** *

* The name displayed to end users on the AppStream 2.0 portal. *

* * @param displayName * The name displayed to end users on the AppStream 2.0 portal. */ public void setDisplayName(String displayName) { this.displayName = displayName; } /** *

* The name displayed to end users on the AppStream 2.0 portal. *

* * @return The name displayed to end users on the AppStream 2.0 portal. */ public String getDisplayName() { return this.displayName; } /** *

* The name displayed to end users on the AppStream 2.0 portal. *

* * @param displayName * The name displayed to end users on the AppStream 2.0 portal. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateStackRequest withDisplayName(String displayName) { setDisplayName(displayName); return this; } /** *

* The storage connectors to be enabled for the stack. *

* * @return The storage connectors to be enabled for the stack. */ public java.util.List getStorageConnectors() { return storageConnectors; } /** *

* The storage connectors to be enabled for the stack. *

* * @param storageConnectors * The storage connectors to be enabled for the stack. */ public void setStorageConnectors(java.util.Collection storageConnectors) { if (storageConnectors == null) { this.storageConnectors = null; return; } this.storageConnectors = new java.util.ArrayList(storageConnectors); } /** *

* The storage connectors to be enabled for the stack. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setStorageConnectors(java.util.Collection)} or {@link #withStorageConnectors(java.util.Collection)} if * you want to override the existing values. *

* * @param storageConnectors * The storage connectors to be enabled for the stack. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateStackRequest withStorageConnectors(StorageConnector... storageConnectors) { if (this.storageConnectors == null) { setStorageConnectors(new java.util.ArrayList(storageConnectors.length)); } for (StorageConnector ele : storageConnectors) { this.storageConnectors.add(ele); } return this; } /** *

* The storage connectors to be enabled for the stack. *

* * @param storageConnectors * The storage connectors to be enabled for the stack. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateStackRequest withStorageConnectors(java.util.Collection storageConnectors) { setStorageConnectors(storageConnectors); return this; } /** * Returns a string representation of this object; useful for testing and debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getDisplayName() != null) sb.append("DisplayName: ").append(getDisplayName()).append(","); if (getStorageConnectors() != null) sb.append("StorageConnectors: ").append(getStorageConnectors()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateStackRequest == false) return false; CreateStackRequest other = (CreateStackRequest) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getDisplayName() == null ^ this.getDisplayName() == null) return false; if (other.getDisplayName() != null && other.getDisplayName().equals(this.getDisplayName()) == false) return false; if (other.getStorageConnectors() == null ^ this.getStorageConnectors() == null) return false; if (other.getStorageConnectors() != null && other.getStorageConnectors().equals(this.getStorageConnectors()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getDisplayName() == null) ? 0 : getDisplayName().hashCode()); hashCode = prime * hashCode + ((getStorageConnectors() == null) ? 0 : getStorageConnectors().hashCode()); return hashCode; } @Override public CreateStackRequest clone() { return (CreateStackRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy