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

com.amazonaws.services.appstream.model.CreateAppBlockRequest 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 2019-2024 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 CreateAppBlockRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The name of the app block. *

*/ private String name; /** *

* The description of the app block. *

*/ private String description; /** *

* The display name of the app block. This is not displayed to the user. *

*/ private String displayName; /** *

* The source S3 location of the app block. *

*/ private S3Location sourceS3Location; /** *

* The setup script details of the app block. This must be provided for the CUSTOM PackagingType. *

*/ private ScriptDetails setupScriptDetails; /** *

* The tags assigned to the app block. *

*/ private java.util.Map tags; /** *

* The post setup script details of the app block. This can only be provided for the APPSTREAM2 * PackagingType. *

*/ private ScriptDetails postSetupScriptDetails; /** *

* The packaging type of the app block. *

*/ private String packagingType; /** *

* The name of the app block. *

* * @param name * The name of the app block. */ public void setName(String name) { this.name = name; } /** *

* The name of the app block. *

* * @return The name of the app block. */ public String getName() { return this.name; } /** *

* The name of the app block. *

* * @param name * The name of the app block. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppBlockRequest withName(String name) { setName(name); return this; } /** *

* The description of the app block. *

* * @param description * The description of the app block. */ public void setDescription(String description) { this.description = description; } /** *

* The description of the app block. *

* * @return The description of the app block. */ public String getDescription() { return this.description; } /** *

* The description of the app block. *

* * @param description * The description of the app block. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppBlockRequest withDescription(String description) { setDescription(description); return this; } /** *

* The display name of the app block. This is not displayed to the user. *

* * @param displayName * The display name of the app block. This is not displayed to the user. */ public void setDisplayName(String displayName) { this.displayName = displayName; } /** *

* The display name of the app block. This is not displayed to the user. *

* * @return The display name of the app block. This is not displayed to the user. */ public String getDisplayName() { return this.displayName; } /** *

* The display name of the app block. This is not displayed to the user. *

* * @param displayName * The display name of the app block. This is not displayed to the user. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppBlockRequest withDisplayName(String displayName) { setDisplayName(displayName); return this; } /** *

* The source S3 location of the app block. *

* * @param sourceS3Location * The source S3 location of the app block. */ public void setSourceS3Location(S3Location sourceS3Location) { this.sourceS3Location = sourceS3Location; } /** *

* The source S3 location of the app block. *

* * @return The source S3 location of the app block. */ public S3Location getSourceS3Location() { return this.sourceS3Location; } /** *

* The source S3 location of the app block. *

* * @param sourceS3Location * The source S3 location of the app block. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppBlockRequest withSourceS3Location(S3Location sourceS3Location) { setSourceS3Location(sourceS3Location); return this; } /** *

* The setup script details of the app block. This must be provided for the CUSTOM PackagingType. *

* * @param setupScriptDetails * The setup script details of the app block. This must be provided for the CUSTOM * PackagingType. */ public void setSetupScriptDetails(ScriptDetails setupScriptDetails) { this.setupScriptDetails = setupScriptDetails; } /** *

* The setup script details of the app block. This must be provided for the CUSTOM PackagingType. *

* * @return The setup script details of the app block. This must be provided for the CUSTOM * PackagingType. */ public ScriptDetails getSetupScriptDetails() { return this.setupScriptDetails; } /** *

* The setup script details of the app block. This must be provided for the CUSTOM PackagingType. *

* * @param setupScriptDetails * The setup script details of the app block. This must be provided for the CUSTOM * PackagingType. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppBlockRequest withSetupScriptDetails(ScriptDetails setupScriptDetails) { setSetupScriptDetails(setupScriptDetails); return this; } /** *

* The tags assigned to the app block. *

* * @return The tags assigned to the app block. */ public java.util.Map getTags() { return tags; } /** *

* The tags assigned to the app block. *

* * @param tags * The tags assigned to the app block. */ public void setTags(java.util.Map tags) { this.tags = tags; } /** *

* The tags assigned to the app block. *

* * @param tags * The tags assigned to the app block. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppBlockRequest withTags(java.util.Map tags) { setTags(tags); return this; } /** * Add a single Tags entry * * @see CreateAppBlockRequest#withTags * @returns a reference to this object so that method calls can be chained together. */ public CreateAppBlockRequest addTagsEntry(String key, String value) { if (null == this.tags) { this.tags = new java.util.HashMap(); } if (this.tags.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.tags.put(key, value); return this; } /** * Removes all the entries added into Tags. * * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppBlockRequest clearTagsEntries() { this.tags = null; return this; } /** *

* The post setup script details of the app block. This can only be provided for the APPSTREAM2 * PackagingType. *

* * @param postSetupScriptDetails * The post setup script details of the app block. This can only be provided for the APPSTREAM2 * PackagingType. */ public void setPostSetupScriptDetails(ScriptDetails postSetupScriptDetails) { this.postSetupScriptDetails = postSetupScriptDetails; } /** *

* The post setup script details of the app block. This can only be provided for the APPSTREAM2 * PackagingType. *

* * @return The post setup script details of the app block. This can only be provided for the APPSTREAM2 * PackagingType. */ public ScriptDetails getPostSetupScriptDetails() { return this.postSetupScriptDetails; } /** *

* The post setup script details of the app block. This can only be provided for the APPSTREAM2 * PackagingType. *

* * @param postSetupScriptDetails * The post setup script details of the app block. This can only be provided for the APPSTREAM2 * PackagingType. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppBlockRequest withPostSetupScriptDetails(ScriptDetails postSetupScriptDetails) { setPostSetupScriptDetails(postSetupScriptDetails); return this; } /** *

* The packaging type of the app block. *

* * @param packagingType * The packaging type of the app block. * @see PackagingType */ public void setPackagingType(String packagingType) { this.packagingType = packagingType; } /** *

* The packaging type of the app block. *

* * @return The packaging type of the app block. * @see PackagingType */ public String getPackagingType() { return this.packagingType; } /** *

* The packaging type of the app block. *

* * @param packagingType * The packaging type of the app block. * @return Returns a reference to this object so that method calls can be chained together. * @see PackagingType */ public CreateAppBlockRequest withPackagingType(String packagingType) { setPackagingType(packagingType); return this; } /** *

* The packaging type of the app block. *

* * @param packagingType * The packaging type of the app block. * @return Returns a reference to this object so that method calls can be chained together. * @see PackagingType */ public CreateAppBlockRequest withPackagingType(PackagingType packagingType) { this.packagingType = packagingType.toString(); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @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 (getSourceS3Location() != null) sb.append("SourceS3Location: ").append(getSourceS3Location()).append(","); if (getSetupScriptDetails() != null) sb.append("SetupScriptDetails: ").append(getSetupScriptDetails()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getPostSetupScriptDetails() != null) sb.append("PostSetupScriptDetails: ").append(getPostSetupScriptDetails()).append(","); if (getPackagingType() != null) sb.append("PackagingType: ").append(getPackagingType()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateAppBlockRequest == false) return false; CreateAppBlockRequest other = (CreateAppBlockRequest) 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.getSourceS3Location() == null ^ this.getSourceS3Location() == null) return false; if (other.getSourceS3Location() != null && other.getSourceS3Location().equals(this.getSourceS3Location()) == false) return false; if (other.getSetupScriptDetails() == null ^ this.getSetupScriptDetails() == null) return false; if (other.getSetupScriptDetails() != null && other.getSetupScriptDetails().equals(this.getSetupScriptDetails()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getPostSetupScriptDetails() == null ^ this.getPostSetupScriptDetails() == null) return false; if (other.getPostSetupScriptDetails() != null && other.getPostSetupScriptDetails().equals(this.getPostSetupScriptDetails()) == false) return false; if (other.getPackagingType() == null ^ this.getPackagingType() == null) return false; if (other.getPackagingType() != null && other.getPackagingType().equals(this.getPackagingType()) == 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 + ((getSourceS3Location() == null) ? 0 : getSourceS3Location().hashCode()); hashCode = prime * hashCode + ((getSetupScriptDetails() == null) ? 0 : getSetupScriptDetails().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getPostSetupScriptDetails() == null) ? 0 : getPostSetupScriptDetails().hashCode()); hashCode = prime * hashCode + ((getPackagingType() == null) ? 0 : getPackagingType().hashCode()); return hashCode; } @Override public CreateAppBlockRequest clone() { return (CreateAppBlockRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy