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

com.amazonaws.services.workspaces.model.WorkSpaceApplication Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.778
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.workspaces.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Describes the WorkSpace application. *

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

* The identifier of the application. *

*/ private String applicationId; /** *

* The time the application is created. *

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

* The description of the WorkSpace application. *

*/ private String description; /** *

* The license availability for the applications. *

*/ private String licenseType; /** *

* The name of the WorkSpace application. *

*/ private String name; /** *

* The owner of the WorkSpace application. *

*/ private String owner; /** *

* The status of WorkSpace application. *

*/ private String state; /** *

* The supported compute types of the WorkSpace application. *

*/ private com.amazonaws.internal.SdkInternalList supportedComputeTypeNames; /** *

* The supported operating systems of the WorkSpace application. *

*/ private com.amazonaws.internal.SdkInternalList supportedOperatingSystemNames; /** *

* The identifier of the application. *

* * @param applicationId * The identifier of the application. */ public void setApplicationId(String applicationId) { this.applicationId = applicationId; } /** *

* The identifier of the application. *

* * @return The identifier of the application. */ public String getApplicationId() { return this.applicationId; } /** *

* The identifier of the application. *

* * @param applicationId * The identifier of the application. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkSpaceApplication withApplicationId(String applicationId) { setApplicationId(applicationId); return this; } /** *

* The time the application is created. *

* * @param created * The time the application is created. */ public void setCreated(java.util.Date created) { this.created = created; } /** *

* The time the application is created. *

* * @return The time the application is created. */ public java.util.Date getCreated() { return this.created; } /** *

* The time the application is created. *

* * @param created * The time the application is created. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkSpaceApplication withCreated(java.util.Date created) { setCreated(created); return this; } /** *

* The description of the WorkSpace application. *

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

* The description of the WorkSpace application. *

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

* The description of the WorkSpace application. *

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

* The license availability for the applications. *

* * @param licenseType * The license availability for the applications. * @see WorkSpaceApplicationLicenseType */ public void setLicenseType(String licenseType) { this.licenseType = licenseType; } /** *

* The license availability for the applications. *

* * @return The license availability for the applications. * @see WorkSpaceApplicationLicenseType */ public String getLicenseType() { return this.licenseType; } /** *

* The license availability for the applications. *

* * @param licenseType * The license availability for the applications. * @return Returns a reference to this object so that method calls can be chained together. * @see WorkSpaceApplicationLicenseType */ public WorkSpaceApplication withLicenseType(String licenseType) { setLicenseType(licenseType); return this; } /** *

* The license availability for the applications. *

* * @param licenseType * The license availability for the applications. * @return Returns a reference to this object so that method calls can be chained together. * @see WorkSpaceApplicationLicenseType */ public WorkSpaceApplication withLicenseType(WorkSpaceApplicationLicenseType licenseType) { this.licenseType = licenseType.toString(); return this; } /** *

* The name of the WorkSpace application. *

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

* The name of the WorkSpace application. *

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

* The name of the WorkSpace application. *

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

* The owner of the WorkSpace application. *

* * @param owner * The owner of the WorkSpace application. */ public void setOwner(String owner) { this.owner = owner; } /** *

* The owner of the WorkSpace application. *

* * @return The owner of the WorkSpace application. */ public String getOwner() { return this.owner; } /** *

* The owner of the WorkSpace application. *

* * @param owner * The owner of the WorkSpace application. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkSpaceApplication withOwner(String owner) { setOwner(owner); return this; } /** *

* The status of WorkSpace application. *

* * @param state * The status of WorkSpace application. * @see WorkSpaceApplicationState */ public void setState(String state) { this.state = state; } /** *

* The status of WorkSpace application. *

* * @return The status of WorkSpace application. * @see WorkSpaceApplicationState */ public String getState() { return this.state; } /** *

* The status of WorkSpace application. *

* * @param state * The status of WorkSpace application. * @return Returns a reference to this object so that method calls can be chained together. * @see WorkSpaceApplicationState */ public WorkSpaceApplication withState(String state) { setState(state); return this; } /** *

* The status of WorkSpace application. *

* * @param state * The status of WorkSpace application. * @return Returns a reference to this object so that method calls can be chained together. * @see WorkSpaceApplicationState */ public WorkSpaceApplication withState(WorkSpaceApplicationState state) { this.state = state.toString(); return this; } /** *

* The supported compute types of the WorkSpace application. *

* * @return The supported compute types of the WorkSpace application. * @see Compute */ public java.util.List getSupportedComputeTypeNames() { if (supportedComputeTypeNames == null) { supportedComputeTypeNames = new com.amazonaws.internal.SdkInternalList(); } return supportedComputeTypeNames; } /** *

* The supported compute types of the WorkSpace application. *

* * @param supportedComputeTypeNames * The supported compute types of the WorkSpace application. * @see Compute */ public void setSupportedComputeTypeNames(java.util.Collection supportedComputeTypeNames) { if (supportedComputeTypeNames == null) { this.supportedComputeTypeNames = null; return; } this.supportedComputeTypeNames = new com.amazonaws.internal.SdkInternalList(supportedComputeTypeNames); } /** *

* The supported compute types of the WorkSpace application. *

*

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

* * @param supportedComputeTypeNames * The supported compute types of the WorkSpace application. * @return Returns a reference to this object so that method calls can be chained together. * @see Compute */ public WorkSpaceApplication withSupportedComputeTypeNames(String... supportedComputeTypeNames) { if (this.supportedComputeTypeNames == null) { setSupportedComputeTypeNames(new com.amazonaws.internal.SdkInternalList(supportedComputeTypeNames.length)); } for (String ele : supportedComputeTypeNames) { this.supportedComputeTypeNames.add(ele); } return this; } /** *

* The supported compute types of the WorkSpace application. *

* * @param supportedComputeTypeNames * The supported compute types of the WorkSpace application. * @return Returns a reference to this object so that method calls can be chained together. * @see Compute */ public WorkSpaceApplication withSupportedComputeTypeNames(java.util.Collection supportedComputeTypeNames) { setSupportedComputeTypeNames(supportedComputeTypeNames); return this; } /** *

* The supported compute types of the WorkSpace application. *

* * @param supportedComputeTypeNames * The supported compute types of the WorkSpace application. * @return Returns a reference to this object so that method calls can be chained together. * @see Compute */ public WorkSpaceApplication withSupportedComputeTypeNames(Compute... supportedComputeTypeNames) { com.amazonaws.internal.SdkInternalList supportedComputeTypeNamesCopy = new com.amazonaws.internal.SdkInternalList( supportedComputeTypeNames.length); for (Compute value : supportedComputeTypeNames) { supportedComputeTypeNamesCopy.add(value.toString()); } if (getSupportedComputeTypeNames() == null) { setSupportedComputeTypeNames(supportedComputeTypeNamesCopy); } else { getSupportedComputeTypeNames().addAll(supportedComputeTypeNamesCopy); } return this; } /** *

* The supported operating systems of the WorkSpace application. *

* * @return The supported operating systems of the WorkSpace application. * @see OperatingSystemName */ public java.util.List getSupportedOperatingSystemNames() { if (supportedOperatingSystemNames == null) { supportedOperatingSystemNames = new com.amazonaws.internal.SdkInternalList(); } return supportedOperatingSystemNames; } /** *

* The supported operating systems of the WorkSpace application. *

* * @param supportedOperatingSystemNames * The supported operating systems of the WorkSpace application. * @see OperatingSystemName */ public void setSupportedOperatingSystemNames(java.util.Collection supportedOperatingSystemNames) { if (supportedOperatingSystemNames == null) { this.supportedOperatingSystemNames = null; return; } this.supportedOperatingSystemNames = new com.amazonaws.internal.SdkInternalList(supportedOperatingSystemNames); } /** *

* The supported operating systems of the WorkSpace application. *

*

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

* * @param supportedOperatingSystemNames * The supported operating systems of the WorkSpace application. * @return Returns a reference to this object so that method calls can be chained together. * @see OperatingSystemName */ public WorkSpaceApplication withSupportedOperatingSystemNames(String... supportedOperatingSystemNames) { if (this.supportedOperatingSystemNames == null) { setSupportedOperatingSystemNames(new com.amazonaws.internal.SdkInternalList(supportedOperatingSystemNames.length)); } for (String ele : supportedOperatingSystemNames) { this.supportedOperatingSystemNames.add(ele); } return this; } /** *

* The supported operating systems of the WorkSpace application. *

* * @param supportedOperatingSystemNames * The supported operating systems of the WorkSpace application. * @return Returns a reference to this object so that method calls can be chained together. * @see OperatingSystemName */ public WorkSpaceApplication withSupportedOperatingSystemNames(java.util.Collection supportedOperatingSystemNames) { setSupportedOperatingSystemNames(supportedOperatingSystemNames); return this; } /** *

* The supported operating systems of the WorkSpace application. *

* * @param supportedOperatingSystemNames * The supported operating systems of the WorkSpace application. * @return Returns a reference to this object so that method calls can be chained together. * @see OperatingSystemName */ public WorkSpaceApplication withSupportedOperatingSystemNames(OperatingSystemName... supportedOperatingSystemNames) { com.amazonaws.internal.SdkInternalList supportedOperatingSystemNamesCopy = new com.amazonaws.internal.SdkInternalList( supportedOperatingSystemNames.length); for (OperatingSystemName value : supportedOperatingSystemNames) { supportedOperatingSystemNamesCopy.add(value.toString()); } if (getSupportedOperatingSystemNames() == null) { setSupportedOperatingSystemNames(supportedOperatingSystemNamesCopy); } else { getSupportedOperatingSystemNames().addAll(supportedOperatingSystemNamesCopy); } 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 (getApplicationId() != null) sb.append("ApplicationId: ").append(getApplicationId()).append(","); if (getCreated() != null) sb.append("Created: ").append(getCreated()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getLicenseType() != null) sb.append("LicenseType: ").append(getLicenseType()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getOwner() != null) sb.append("Owner: ").append(getOwner()).append(","); if (getState() != null) sb.append("State: ").append(getState()).append(","); if (getSupportedComputeTypeNames() != null) sb.append("SupportedComputeTypeNames: ").append(getSupportedComputeTypeNames()).append(","); if (getSupportedOperatingSystemNames() != null) sb.append("SupportedOperatingSystemNames: ").append(getSupportedOperatingSystemNames()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof WorkSpaceApplication == false) return false; WorkSpaceApplication other = (WorkSpaceApplication) obj; if (other.getApplicationId() == null ^ this.getApplicationId() == null) return false; if (other.getApplicationId() != null && other.getApplicationId().equals(this.getApplicationId()) == false) return false; if (other.getCreated() == null ^ this.getCreated() == null) return false; if (other.getCreated() != null && other.getCreated().equals(this.getCreated()) == 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.getLicenseType() == null ^ this.getLicenseType() == null) return false; if (other.getLicenseType() != null && other.getLicenseType().equals(this.getLicenseType()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getOwner() == null ^ this.getOwner() == null) return false; if (other.getOwner() != null && other.getOwner().equals(this.getOwner()) == false) return false; if (other.getState() == null ^ this.getState() == null) return false; if (other.getState() != null && other.getState().equals(this.getState()) == false) return false; if (other.getSupportedComputeTypeNames() == null ^ this.getSupportedComputeTypeNames() == null) return false; if (other.getSupportedComputeTypeNames() != null && other.getSupportedComputeTypeNames().equals(this.getSupportedComputeTypeNames()) == false) return false; if (other.getSupportedOperatingSystemNames() == null ^ this.getSupportedOperatingSystemNames() == null) return false; if (other.getSupportedOperatingSystemNames() != null && other.getSupportedOperatingSystemNames().equals(this.getSupportedOperatingSystemNames()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getApplicationId() == null) ? 0 : getApplicationId().hashCode()); hashCode = prime * hashCode + ((getCreated() == null) ? 0 : getCreated().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getLicenseType() == null) ? 0 : getLicenseType().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getOwner() == null) ? 0 : getOwner().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); hashCode = prime * hashCode + ((getSupportedComputeTypeNames() == null) ? 0 : getSupportedComputeTypeNames().hashCode()); hashCode = prime * hashCode + ((getSupportedOperatingSystemNames() == null) ? 0 : getSupportedOperatingSystemNames().hashCode()); return hashCode; } @Override public WorkSpaceApplication clone() { try { return (WorkSpaceApplication) 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.workspaces.model.transform.WorkSpaceApplicationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy