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

com.amazonaws.services.appstream.model.AppBlock 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 2017-2022 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.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Describes an app block. *

*

* App blocks are an Amazon AppStream 2.0 resource that stores the details about the virtual hard disk in an S3 bucket. * It also stores the setup script with details about how to mount the virtual hard disk. The virtual hard disk includes * the application binaries and other files necessary to launch your applications. Multiple applications can be assigned * to a single app block. *

*

* This is only supported for Elastic fleets. *

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

* The name of the app block. *

*/ private String name; /** *

* The ARN of the app block. *

*/ private String arn; /** *

* The description of the app block. *

*/ private String description; /** *

* The display name of the app block. *

*/ private String displayName; /** *

* The source S3 location of the app block. *

*/ private S3Location sourceS3Location; /** *

* The setup script details of the app block. *

*/ private ScriptDetails setupScriptDetails; /** *

* The created time of the app block. *

*/ private java.util.Date createdTime; /** *

* 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 AppBlock withName(String name) { setName(name); return this; } /** *

* The ARN of the app block. *

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

* The ARN of the app block. *

* * @return The ARN of the app block. */ public String getArn() { return this.arn; } /** *

* The ARN of the app block. *

* * @param arn * The ARN of the app block. * @return Returns a reference to this object so that method calls can be chained together. */ public AppBlock withArn(String arn) { setArn(arn); 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 AppBlock withDescription(String description) { setDescription(description); return this; } /** *

* The display name of the app block. *

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

* The display name of the app block. *

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

* The display name of the app block. *

* * @param displayName * The display name of the app block. * @return Returns a reference to this object so that method calls can be chained together. */ public AppBlock 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 AppBlock withSourceS3Location(S3Location sourceS3Location) { setSourceS3Location(sourceS3Location); return this; } /** *

* The setup script details of the app block. *

* * @param setupScriptDetails * The setup script details of the app block. */ public void setSetupScriptDetails(ScriptDetails setupScriptDetails) { this.setupScriptDetails = setupScriptDetails; } /** *

* The setup script details of the app block. *

* * @return The setup script details of the app block. */ public ScriptDetails getSetupScriptDetails() { return this.setupScriptDetails; } /** *

* The setup script details of the app block. *

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

* The created time of the app block. *

* * @param createdTime * The created time of the app block. */ public void setCreatedTime(java.util.Date createdTime) { this.createdTime = createdTime; } /** *

* The created time of the app block. *

* * @return The created time of the app block. */ public java.util.Date getCreatedTime() { return this.createdTime; } /** *

* The created time of the app block. *

* * @param createdTime * The created time of the app block. * @return Returns a reference to this object so that method calls can be chained together. */ public AppBlock withCreatedTime(java.util.Date createdTime) { setCreatedTime(createdTime); 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 (getArn() != null) sb.append("Arn: ").append(getArn()).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 (getCreatedTime() != null) sb.append("CreatedTime: ").append(getCreatedTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AppBlock == false) return false; AppBlock other = (AppBlock) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == 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.getCreatedTime() == null ^ this.getCreatedTime() == null) return false; if (other.getCreatedTime() != null && other.getCreatedTime().equals(this.getCreatedTime()) == 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 + ((getArn() == null) ? 0 : getArn().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 + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode()); return hashCode; } @Override public AppBlock clone() { try { return (AppBlock) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.appstream.model.transform.AppBlockMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy