com.amazonaws.services.appstream.model.UpdateAppBlockBuilderRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-appstream Show documentation
/*
* 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 UpdateAppBlockBuilderRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The unique name for the app block builder.
*
*/
private String name;
/**
*
* The description of the app block builder.
*
*/
private String description;
/**
*
* The display name of the app block builder.
*
*/
private String displayName;
/**
*
* The platform of the app block builder.
*
*
* WINDOWS_SERVER_2019
is the only valid value.
*
*/
private String platform;
/**
*
* The instance type to use when launching the app block builder. The following instance types are available:
*
*
* -
*
* stream.standard.small
*
*
* -
*
* stream.standard.medium
*
*
* -
*
* stream.standard.large
*
*
* -
*
* stream.standard.xlarge
*
*
* -
*
* stream.standard.2xlarge
*
*
*
*/
private String instanceType;
/**
*
* The VPC configuration for the app block builder.
*
*
* App block builders require that you specify at least two subnets in different availability zones.
*
*/
private VpcConfig vpcConfig;
/**
*
* Enables or disables default internet access for the app block builder.
*
*/
private Boolean enableDefaultInternetAccess;
/**
*
* The Amazon Resource Name (ARN) of the IAM role to apply to the app block builder. To assume a role, the app block
* builder calls the AWS Security Token Service (STS) AssumeRole
API operation and passes the ARN of
* the role to use. The operation creates a new session with temporary credentials. AppStream 2.0 retrieves the
* temporary credentials and creates the appstream_machine_role credential profile on the instance.
*
*
* For more information, see Using an IAM Role to Grant Permissions to Applications and Scripts Running on AppStream 2.0 Streaming
* Instances in the Amazon AppStream 2.0 Administration Guide.
*
*/
private String iamRoleArn;
/**
*
* The list of interface VPC endpoint (interface endpoint) objects. Administrators can connect to the app block
* builder only through the specified endpoints.
*
*/
private java.util.List accessEndpoints;
/**
*
* The attributes to delete from the app block builder.
*
*/
private java.util.List attributesToDelete;
/**
*
* The unique name for the app block builder.
*
*
* @param name
* The unique name for the app block builder.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The unique name for the app block builder.
*
*
* @return The unique name for the app block builder.
*/
public String getName() {
return this.name;
}
/**
*
* The unique name for the app block builder.
*
*
* @param name
* The unique name for the app block builder.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateAppBlockBuilderRequest withName(String name) {
setName(name);
return this;
}
/**
*
* The description of the app block builder.
*
*
* @param description
* The description of the app block builder.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* The description of the app block builder.
*
*
* @return The description of the app block builder.
*/
public String getDescription() {
return this.description;
}
/**
*
* The description of the app block builder.
*
*
* @param description
* The description of the app block builder.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateAppBlockBuilderRequest withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* The display name of the app block builder.
*
*
* @param displayName
* The display name of the app block builder.
*/
public void setDisplayName(String displayName) {
this.displayName = displayName;
}
/**
*
* The display name of the app block builder.
*
*
* @return The display name of the app block builder.
*/
public String getDisplayName() {
return this.displayName;
}
/**
*
* The display name of the app block builder.
*
*
* @param displayName
* The display name of the app block builder.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateAppBlockBuilderRequest withDisplayName(String displayName) {
setDisplayName(displayName);
return this;
}
/**
*
* The platform of the app block builder.
*
*
* WINDOWS_SERVER_2019
is the only valid value.
*
*
* @param platform
* The platform of the app block builder.
*
* WINDOWS_SERVER_2019
is the only valid value.
* @see PlatformType
*/
public void setPlatform(String platform) {
this.platform = platform;
}
/**
*
* The platform of the app block builder.
*
*
* WINDOWS_SERVER_2019
is the only valid value.
*
*
* @return The platform of the app block builder.
*
* WINDOWS_SERVER_2019
is the only valid value.
* @see PlatformType
*/
public String getPlatform() {
return this.platform;
}
/**
*
* The platform of the app block builder.
*
*
* WINDOWS_SERVER_2019
is the only valid value.
*
*
* @param platform
* The platform of the app block builder.
*
* WINDOWS_SERVER_2019
is the only valid value.
* @return Returns a reference to this object so that method calls can be chained together.
* @see PlatformType
*/
public UpdateAppBlockBuilderRequest withPlatform(String platform) {
setPlatform(platform);
return this;
}
/**
*
* The platform of the app block builder.
*
*
* WINDOWS_SERVER_2019
is the only valid value.
*
*
* @param platform
* The platform of the app block builder.
*
* WINDOWS_SERVER_2019
is the only valid value.
* @return Returns a reference to this object so that method calls can be chained together.
* @see PlatformType
*/
public UpdateAppBlockBuilderRequest withPlatform(PlatformType platform) {
this.platform = platform.toString();
return this;
}
/**
*
* The instance type to use when launching the app block builder. The following instance types are available:
*
*
* -
*
* stream.standard.small
*
*
* -
*
* stream.standard.medium
*
*
* -
*
* stream.standard.large
*
*
* -
*
* stream.standard.xlarge
*
*
* -
*
* stream.standard.2xlarge
*
*
*
*
* @param instanceType
* The instance type to use when launching the app block builder. The following instance types are
* available:
*
* -
*
* stream.standard.small
*
*
* -
*
* stream.standard.medium
*
*
* -
*
* stream.standard.large
*
*
* -
*
* stream.standard.xlarge
*
*
* -
*
* stream.standard.2xlarge
*
*
*/
public void setInstanceType(String instanceType) {
this.instanceType = instanceType;
}
/**
*
* The instance type to use when launching the app block builder. The following instance types are available:
*
*
* -
*
* stream.standard.small
*
*
* -
*
* stream.standard.medium
*
*
* -
*
* stream.standard.large
*
*
* -
*
* stream.standard.xlarge
*
*
* -
*
* stream.standard.2xlarge
*
*
*
*
* @return The instance type to use when launching the app block builder. The following instance types are
* available:
*
* -
*
* stream.standard.small
*
*
* -
*
* stream.standard.medium
*
*
* -
*
* stream.standard.large
*
*
* -
*
* stream.standard.xlarge
*
*
* -
*
* stream.standard.2xlarge
*
*
*/
public String getInstanceType() {
return this.instanceType;
}
/**
*
* The instance type to use when launching the app block builder. The following instance types are available:
*
*
* -
*
* stream.standard.small
*
*
* -
*
* stream.standard.medium
*
*
* -
*
* stream.standard.large
*
*
* -
*
* stream.standard.xlarge
*
*
* -
*
* stream.standard.2xlarge
*
*
*
*
* @param instanceType
* The instance type to use when launching the app block builder. The following instance types are
* available:
*
* -
*
* stream.standard.small
*
*
* -
*
* stream.standard.medium
*
*
* -
*
* stream.standard.large
*
*
* -
*
* stream.standard.xlarge
*
*
* -
*
* stream.standard.2xlarge
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateAppBlockBuilderRequest withInstanceType(String instanceType) {
setInstanceType(instanceType);
return this;
}
/**
*
* The VPC configuration for the app block builder.
*
*
* App block builders require that you specify at least two subnets in different availability zones.
*
*
* @param vpcConfig
* The VPC configuration for the app block builder.
*
* App block builders require that you specify at least two subnets in different availability zones.
*/
public void setVpcConfig(VpcConfig vpcConfig) {
this.vpcConfig = vpcConfig;
}
/**
*
* The VPC configuration for the app block builder.
*
*
* App block builders require that you specify at least two subnets in different availability zones.
*
*
* @return The VPC configuration for the app block builder.
*
* App block builders require that you specify at least two subnets in different availability zones.
*/
public VpcConfig getVpcConfig() {
return this.vpcConfig;
}
/**
*
* The VPC configuration for the app block builder.
*
*
* App block builders require that you specify at least two subnets in different availability zones.
*
*
* @param vpcConfig
* The VPC configuration for the app block builder.
*
* App block builders require that you specify at least two subnets in different availability zones.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateAppBlockBuilderRequest withVpcConfig(VpcConfig vpcConfig) {
setVpcConfig(vpcConfig);
return this;
}
/**
*
* Enables or disables default internet access for the app block builder.
*
*
* @param enableDefaultInternetAccess
* Enables or disables default internet access for the app block builder.
*/
public void setEnableDefaultInternetAccess(Boolean enableDefaultInternetAccess) {
this.enableDefaultInternetAccess = enableDefaultInternetAccess;
}
/**
*
* Enables or disables default internet access for the app block builder.
*
*
* @return Enables or disables default internet access for the app block builder.
*/
public Boolean getEnableDefaultInternetAccess() {
return this.enableDefaultInternetAccess;
}
/**
*
* Enables or disables default internet access for the app block builder.
*
*
* @param enableDefaultInternetAccess
* Enables or disables default internet access for the app block builder.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateAppBlockBuilderRequest withEnableDefaultInternetAccess(Boolean enableDefaultInternetAccess) {
setEnableDefaultInternetAccess(enableDefaultInternetAccess);
return this;
}
/**
*
* Enables or disables default internet access for the app block builder.
*
*
* @return Enables or disables default internet access for the app block builder.
*/
public Boolean isEnableDefaultInternetAccess() {
return this.enableDefaultInternetAccess;
}
/**
*
* The Amazon Resource Name (ARN) of the IAM role to apply to the app block builder. To assume a role, the app block
* builder calls the AWS Security Token Service (STS) AssumeRole
API operation and passes the ARN of
* the role to use. The operation creates a new session with temporary credentials. AppStream 2.0 retrieves the
* temporary credentials and creates the appstream_machine_role credential profile on the instance.
*
*
* For more information, see Using an IAM Role to Grant Permissions to Applications and Scripts Running on AppStream 2.0 Streaming
* Instances in the Amazon AppStream 2.0 Administration Guide.
*
*
* @param iamRoleArn
* The Amazon Resource Name (ARN) of the IAM role to apply to the app block builder. To assume a role, the
* app block builder calls the AWS Security Token Service (STS) AssumeRole
API operation and
* passes the ARN of the role to use. The operation creates a new session with temporary credentials.
* AppStream 2.0 retrieves the temporary credentials and creates the appstream_machine_role credential
* profile on the instance.
*
* For more information, see Using an IAM Role to Grant Permissions to Applications and Scripts Running on AppStream 2.0 Streaming
* Instances in the Amazon AppStream 2.0 Administration Guide.
*/
public void setIamRoleArn(String iamRoleArn) {
this.iamRoleArn = iamRoleArn;
}
/**
*
* The Amazon Resource Name (ARN) of the IAM role to apply to the app block builder. To assume a role, the app block
* builder calls the AWS Security Token Service (STS) AssumeRole
API operation and passes the ARN of
* the role to use. The operation creates a new session with temporary credentials. AppStream 2.0 retrieves the
* temporary credentials and creates the appstream_machine_role credential profile on the instance.
*
*
* For more information, see Using an IAM Role to Grant Permissions to Applications and Scripts Running on AppStream 2.0 Streaming
* Instances in the Amazon AppStream 2.0 Administration Guide.
*
*
* @return The Amazon Resource Name (ARN) of the IAM role to apply to the app block builder. To assume a role, the
* app block builder calls the AWS Security Token Service (STS) AssumeRole
API operation and
* passes the ARN of the role to use. The operation creates a new session with temporary credentials.
* AppStream 2.0 retrieves the temporary credentials and creates the appstream_machine_role
* credential profile on the instance.
*
* For more information, see Using an IAM Role to Grant Permissions to Applications and Scripts Running on AppStream 2.0 Streaming
* Instances in the Amazon AppStream 2.0 Administration Guide.
*/
public String getIamRoleArn() {
return this.iamRoleArn;
}
/**
*
* The Amazon Resource Name (ARN) of the IAM role to apply to the app block builder. To assume a role, the app block
* builder calls the AWS Security Token Service (STS) AssumeRole
API operation and passes the ARN of
* the role to use. The operation creates a new session with temporary credentials. AppStream 2.0 retrieves the
* temporary credentials and creates the appstream_machine_role credential profile on the instance.
*
*
* For more information, see Using an IAM Role to Grant Permissions to Applications and Scripts Running on AppStream 2.0 Streaming
* Instances in the Amazon AppStream 2.0 Administration Guide.
*
*
* @param iamRoleArn
* The Amazon Resource Name (ARN) of the IAM role to apply to the app block builder. To assume a role, the
* app block builder calls the AWS Security Token Service (STS) AssumeRole
API operation and
* passes the ARN of the role to use. The operation creates a new session with temporary credentials.
* AppStream 2.0 retrieves the temporary credentials and creates the appstream_machine_role credential
* profile on the instance.
*
* For more information, see Using an IAM Role to Grant Permissions to Applications and Scripts Running on AppStream 2.0 Streaming
* Instances in the Amazon AppStream 2.0 Administration Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateAppBlockBuilderRequest withIamRoleArn(String iamRoleArn) {
setIamRoleArn(iamRoleArn);
return this;
}
/**
*
* The list of interface VPC endpoint (interface endpoint) objects. Administrators can connect to the app block
* builder only through the specified endpoints.
*
*
* @return The list of interface VPC endpoint (interface endpoint) objects. Administrators can connect to the app
* block builder only through the specified endpoints.
*/
public java.util.List getAccessEndpoints() {
return accessEndpoints;
}
/**
*
* The list of interface VPC endpoint (interface endpoint) objects. Administrators can connect to the app block
* builder only through the specified endpoints.
*
*
* @param accessEndpoints
* The list of interface VPC endpoint (interface endpoint) objects. Administrators can connect to the app
* block builder only through the specified endpoints.
*/
public void setAccessEndpoints(java.util.Collection accessEndpoints) {
if (accessEndpoints == null) {
this.accessEndpoints = null;
return;
}
this.accessEndpoints = new java.util.ArrayList(accessEndpoints);
}
/**
*
* The list of interface VPC endpoint (interface endpoint) objects. Administrators can connect to the app block
* builder only through the specified endpoints.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setAccessEndpoints(java.util.Collection)} or {@link #withAccessEndpoints(java.util.Collection)} if you
* want to override the existing values.
*
*
* @param accessEndpoints
* The list of interface VPC endpoint (interface endpoint) objects. Administrators can connect to the app
* block builder only through the specified endpoints.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateAppBlockBuilderRequest withAccessEndpoints(AccessEndpoint... accessEndpoints) {
if (this.accessEndpoints == null) {
setAccessEndpoints(new java.util.ArrayList(accessEndpoints.length));
}
for (AccessEndpoint ele : accessEndpoints) {
this.accessEndpoints.add(ele);
}
return this;
}
/**
*
* The list of interface VPC endpoint (interface endpoint) objects. Administrators can connect to the app block
* builder only through the specified endpoints.
*
*
* @param accessEndpoints
* The list of interface VPC endpoint (interface endpoint) objects. Administrators can connect to the app
* block builder only through the specified endpoints.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateAppBlockBuilderRequest withAccessEndpoints(java.util.Collection accessEndpoints) {
setAccessEndpoints(accessEndpoints);
return this;
}
/**
*
* The attributes to delete from the app block builder.
*
*
* @return The attributes to delete from the app block builder.
* @see AppBlockBuilderAttribute
*/
public java.util.List getAttributesToDelete() {
return attributesToDelete;
}
/**
*
* The attributes to delete from the app block builder.
*
*
* @param attributesToDelete
* The attributes to delete from the app block builder.
* @see AppBlockBuilderAttribute
*/
public void setAttributesToDelete(java.util.Collection attributesToDelete) {
if (attributesToDelete == null) {
this.attributesToDelete = null;
return;
}
this.attributesToDelete = new java.util.ArrayList(attributesToDelete);
}
/**
*
* The attributes to delete from the app block builder.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setAttributesToDelete(java.util.Collection)} or {@link #withAttributesToDelete(java.util.Collection)} if
* you want to override the existing values.
*
*
* @param attributesToDelete
* The attributes to delete from the app block builder.
* @return Returns a reference to this object so that method calls can be chained together.
* @see AppBlockBuilderAttribute
*/
public UpdateAppBlockBuilderRequest withAttributesToDelete(String... attributesToDelete) {
if (this.attributesToDelete == null) {
setAttributesToDelete(new java.util.ArrayList(attributesToDelete.length));
}
for (String ele : attributesToDelete) {
this.attributesToDelete.add(ele);
}
return this;
}
/**
*
* The attributes to delete from the app block builder.
*
*
* @param attributesToDelete
* The attributes to delete from the app block builder.
* @return Returns a reference to this object so that method calls can be chained together.
* @see AppBlockBuilderAttribute
*/
public UpdateAppBlockBuilderRequest withAttributesToDelete(java.util.Collection attributesToDelete) {
setAttributesToDelete(attributesToDelete);
return this;
}
/**
*
* The attributes to delete from the app block builder.
*
*
* @param attributesToDelete
* The attributes to delete from the app block builder.
* @return Returns a reference to this object so that method calls can be chained together.
* @see AppBlockBuilderAttribute
*/
public UpdateAppBlockBuilderRequest withAttributesToDelete(AppBlockBuilderAttribute... attributesToDelete) {
java.util.ArrayList attributesToDeleteCopy = new java.util.ArrayList(attributesToDelete.length);
for (AppBlockBuilderAttribute value : attributesToDelete) {
attributesToDeleteCopy.add(value.toString());
}
if (getAttributesToDelete() == null) {
setAttributesToDelete(attributesToDeleteCopy);
} else {
getAttributesToDelete().addAll(attributesToDeleteCopy);
}
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 (getPlatform() != null)
sb.append("Platform: ").append(getPlatform()).append(",");
if (getInstanceType() != null)
sb.append("InstanceType: ").append(getInstanceType()).append(",");
if (getVpcConfig() != null)
sb.append("VpcConfig: ").append(getVpcConfig()).append(",");
if (getEnableDefaultInternetAccess() != null)
sb.append("EnableDefaultInternetAccess: ").append(getEnableDefaultInternetAccess()).append(",");
if (getIamRoleArn() != null)
sb.append("IamRoleArn: ").append(getIamRoleArn()).append(",");
if (getAccessEndpoints() != null)
sb.append("AccessEndpoints: ").append(getAccessEndpoints()).append(",");
if (getAttributesToDelete() != null)
sb.append("AttributesToDelete: ").append(getAttributesToDelete());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof UpdateAppBlockBuilderRequest == false)
return false;
UpdateAppBlockBuilderRequest other = (UpdateAppBlockBuilderRequest) 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.getPlatform() == null ^ this.getPlatform() == null)
return false;
if (other.getPlatform() != null && other.getPlatform().equals(this.getPlatform()) == false)
return false;
if (other.getInstanceType() == null ^ this.getInstanceType() == null)
return false;
if (other.getInstanceType() != null && other.getInstanceType().equals(this.getInstanceType()) == false)
return false;
if (other.getVpcConfig() == null ^ this.getVpcConfig() == null)
return false;
if (other.getVpcConfig() != null && other.getVpcConfig().equals(this.getVpcConfig()) == false)
return false;
if (other.getEnableDefaultInternetAccess() == null ^ this.getEnableDefaultInternetAccess() == null)
return false;
if (other.getEnableDefaultInternetAccess() != null && other.getEnableDefaultInternetAccess().equals(this.getEnableDefaultInternetAccess()) == false)
return false;
if (other.getIamRoleArn() == null ^ this.getIamRoleArn() == null)
return false;
if (other.getIamRoleArn() != null && other.getIamRoleArn().equals(this.getIamRoleArn()) == false)
return false;
if (other.getAccessEndpoints() == null ^ this.getAccessEndpoints() == null)
return false;
if (other.getAccessEndpoints() != null && other.getAccessEndpoints().equals(this.getAccessEndpoints()) == false)
return false;
if (other.getAttributesToDelete() == null ^ this.getAttributesToDelete() == null)
return false;
if (other.getAttributesToDelete() != null && other.getAttributesToDelete().equals(this.getAttributesToDelete()) == 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 + ((getPlatform() == null) ? 0 : getPlatform().hashCode());
hashCode = prime * hashCode + ((getInstanceType() == null) ? 0 : getInstanceType().hashCode());
hashCode = prime * hashCode + ((getVpcConfig() == null) ? 0 : getVpcConfig().hashCode());
hashCode = prime * hashCode + ((getEnableDefaultInternetAccess() == null) ? 0 : getEnableDefaultInternetAccess().hashCode());
hashCode = prime * hashCode + ((getIamRoleArn() == null) ? 0 : getIamRoleArn().hashCode());
hashCode = prime * hashCode + ((getAccessEndpoints() == null) ? 0 : getAccessEndpoints().hashCode());
hashCode = prime * hashCode + ((getAttributesToDelete() == null) ? 0 : getAttributesToDelete().hashCode());
return hashCode;
}
@Override
public UpdateAppBlockBuilderRequest clone() {
return (UpdateAppBlockBuilderRequest) super.clone();
}
}