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

com.amazonaws.services.workspaces.model.WorkspaceBundle 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 a WorkSpace bundle. *

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

* The identifier of the bundle. *

*/ private String bundleId; /** *

* The name of the bundle. *

*/ private String name; /** *

* The owner of the bundle. This is the account identifier of the owner, or AMAZON if the bundle is * provided by Amazon Web Services. *

*/ private String owner; /** *

* The description of the bundle. *

*/ private String description; /** *

* The identifier of the image that was used to create the bundle. *

*/ private String imageId; /** *

* The size of the root volume. *

*/ private RootStorage rootStorage; /** *

* The size of the user volume. *

*/ private UserStorage userStorage; /** *

* The compute type of the bundle. For more information, see Amazon WorkSpaces Bundles. *

*/ private ComputeType computeType; /** *

* The last time that the bundle was updated. *

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

* The time when the bundle was created. *

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

* The state of the WorkSpace bundle. *

*/ private String state; /** *

* The type of WorkSpace bundle. *

*/ private String bundleType; /** *

* The identifier of the bundle. *

* * @param bundleId * The identifier of the bundle. */ public void setBundleId(String bundleId) { this.bundleId = bundleId; } /** *

* The identifier of the bundle. *

* * @return The identifier of the bundle. */ public String getBundleId() { return this.bundleId; } /** *

* The identifier of the bundle. *

* * @param bundleId * The identifier of the bundle. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkspaceBundle withBundleId(String bundleId) { setBundleId(bundleId); return this; } /** *

* The name of the bundle. *

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

* The name of the bundle. *

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

* The name of the bundle. *

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

* The owner of the bundle. This is the account identifier of the owner, or AMAZON if the bundle is * provided by Amazon Web Services. *

* * @param owner * The owner of the bundle. This is the account identifier of the owner, or AMAZON if the bundle * is provided by Amazon Web Services. */ public void setOwner(String owner) { this.owner = owner; } /** *

* The owner of the bundle. This is the account identifier of the owner, or AMAZON if the bundle is * provided by Amazon Web Services. *

* * @return The owner of the bundle. This is the account identifier of the owner, or AMAZON if the * bundle is provided by Amazon Web Services. */ public String getOwner() { return this.owner; } /** *

* The owner of the bundle. This is the account identifier of the owner, or AMAZON if the bundle is * provided by Amazon Web Services. *

* * @param owner * The owner of the bundle. This is the account identifier of the owner, or AMAZON if the bundle * is provided by Amazon Web Services. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkspaceBundle withOwner(String owner) { setOwner(owner); return this; } /** *

* The description of the bundle. *

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

* The description of the bundle. *

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

* The description of the bundle. *

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

* The identifier of the image that was used to create the bundle. *

* * @param imageId * The identifier of the image that was used to create the bundle. */ public void setImageId(String imageId) { this.imageId = imageId; } /** *

* The identifier of the image that was used to create the bundle. *

* * @return The identifier of the image that was used to create the bundle. */ public String getImageId() { return this.imageId; } /** *

* The identifier of the image that was used to create the bundle. *

* * @param imageId * The identifier of the image that was used to create the bundle. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkspaceBundle withImageId(String imageId) { setImageId(imageId); return this; } /** *

* The size of the root volume. *

* * @param rootStorage * The size of the root volume. */ public void setRootStorage(RootStorage rootStorage) { this.rootStorage = rootStorage; } /** *

* The size of the root volume. *

* * @return The size of the root volume. */ public RootStorage getRootStorage() { return this.rootStorage; } /** *

* The size of the root volume. *

* * @param rootStorage * The size of the root volume. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkspaceBundle withRootStorage(RootStorage rootStorage) { setRootStorage(rootStorage); return this; } /** *

* The size of the user volume. *

* * @param userStorage * The size of the user volume. */ public void setUserStorage(UserStorage userStorage) { this.userStorage = userStorage; } /** *

* The size of the user volume. *

* * @return The size of the user volume. */ public UserStorage getUserStorage() { return this.userStorage; } /** *

* The size of the user volume. *

* * @param userStorage * The size of the user volume. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkspaceBundle withUserStorage(UserStorage userStorage) { setUserStorage(userStorage); return this; } /** *

* The compute type of the bundle. For more information, see Amazon WorkSpaces Bundles. *

* * @param computeType * The compute type of the bundle. For more information, see Amazon WorkSpaces Bundles. */ public void setComputeType(ComputeType computeType) { this.computeType = computeType; } /** *

* The compute type of the bundle. For more information, see Amazon WorkSpaces Bundles. *

* * @return The compute type of the bundle. For more information, see Amazon WorkSpaces Bundles. */ public ComputeType getComputeType() { return this.computeType; } /** *

* The compute type of the bundle. For more information, see Amazon WorkSpaces Bundles. *

* * @param computeType * The compute type of the bundle. For more information, see Amazon WorkSpaces Bundles. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkspaceBundle withComputeType(ComputeType computeType) { setComputeType(computeType); return this; } /** *

* The last time that the bundle was updated. *

* * @param lastUpdatedTime * The last time that the bundle was updated. */ public void setLastUpdatedTime(java.util.Date lastUpdatedTime) { this.lastUpdatedTime = lastUpdatedTime; } /** *

* The last time that the bundle was updated. *

* * @return The last time that the bundle was updated. */ public java.util.Date getLastUpdatedTime() { return this.lastUpdatedTime; } /** *

* The last time that the bundle was updated. *

* * @param lastUpdatedTime * The last time that the bundle was updated. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkspaceBundle withLastUpdatedTime(java.util.Date lastUpdatedTime) { setLastUpdatedTime(lastUpdatedTime); return this; } /** *

* The time when the bundle was created. *

* * @param creationTime * The time when the bundle was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** *

* The time when the bundle was created. *

* * @return The time when the bundle was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** *

* The time when the bundle was created. *

* * @param creationTime * The time when the bundle was created. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkspaceBundle withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** *

* The state of the WorkSpace bundle. *

* * @param state * The state of the WorkSpace bundle. * @see WorkspaceBundleState */ public void setState(String state) { this.state = state; } /** *

* The state of the WorkSpace bundle. *

* * @return The state of the WorkSpace bundle. * @see WorkspaceBundleState */ public String getState() { return this.state; } /** *

* The state of the WorkSpace bundle. *

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

* The state of the WorkSpace bundle. *

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

* The type of WorkSpace bundle. *

* * @param bundleType * The type of WorkSpace bundle. * @see BundleType */ public void setBundleType(String bundleType) { this.bundleType = bundleType; } /** *

* The type of WorkSpace bundle. *

* * @return The type of WorkSpace bundle. * @see BundleType */ public String getBundleType() { return this.bundleType; } /** *

* The type of WorkSpace bundle. *

* * @param bundleType * The type of WorkSpace bundle. * @return Returns a reference to this object so that method calls can be chained together. * @see BundleType */ public WorkspaceBundle withBundleType(String bundleType) { setBundleType(bundleType); return this; } /** *

* The type of WorkSpace bundle. *

* * @param bundleType * The type of WorkSpace bundle. * @return Returns a reference to this object so that method calls can be chained together. * @see BundleType */ public WorkspaceBundle withBundleType(BundleType bundleType) { this.bundleType = bundleType.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 (getBundleId() != null) sb.append("BundleId: ").append(getBundleId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getOwner() != null) sb.append("Owner: ").append(getOwner()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getImageId() != null) sb.append("ImageId: ").append(getImageId()).append(","); if (getRootStorage() != null) sb.append("RootStorage: ").append(getRootStorage()).append(","); if (getUserStorage() != null) sb.append("UserStorage: ").append(getUserStorage()).append(","); if (getComputeType() != null) sb.append("ComputeType: ").append(getComputeType()).append(","); if (getLastUpdatedTime() != null) sb.append("LastUpdatedTime: ").append(getLastUpdatedTime()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getState() != null) sb.append("State: ").append(getState()).append(","); if (getBundleType() != null) sb.append("BundleType: ").append(getBundleType()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof WorkspaceBundle == false) return false; WorkspaceBundle other = (WorkspaceBundle) obj; if (other.getBundleId() == null ^ this.getBundleId() == null) return false; if (other.getBundleId() != null && other.getBundleId().equals(this.getBundleId()) == 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.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getImageId() == null ^ this.getImageId() == null) return false; if (other.getImageId() != null && other.getImageId().equals(this.getImageId()) == false) return false; if (other.getRootStorage() == null ^ this.getRootStorage() == null) return false; if (other.getRootStorage() != null && other.getRootStorage().equals(this.getRootStorage()) == false) return false; if (other.getUserStorage() == null ^ this.getUserStorage() == null) return false; if (other.getUserStorage() != null && other.getUserStorage().equals(this.getUserStorage()) == false) return false; if (other.getComputeType() == null ^ this.getComputeType() == null) return false; if (other.getComputeType() != null && other.getComputeType().equals(this.getComputeType()) == false) return false; if (other.getLastUpdatedTime() == null ^ this.getLastUpdatedTime() == null) return false; if (other.getLastUpdatedTime() != null && other.getLastUpdatedTime().equals(this.getLastUpdatedTime()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == 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.getBundleType() == null ^ this.getBundleType() == null) return false; if (other.getBundleType() != null && other.getBundleType().equals(this.getBundleType()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBundleId() == null) ? 0 : getBundleId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getOwner() == null) ? 0 : getOwner().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getImageId() == null) ? 0 : getImageId().hashCode()); hashCode = prime * hashCode + ((getRootStorage() == null) ? 0 : getRootStorage().hashCode()); hashCode = prime * hashCode + ((getUserStorage() == null) ? 0 : getUserStorage().hashCode()); hashCode = prime * hashCode + ((getComputeType() == null) ? 0 : getComputeType().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedTime() == null) ? 0 : getLastUpdatedTime().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); hashCode = prime * hashCode + ((getBundleType() == null) ? 0 : getBundleType().hashCode()); return hashCode; } @Override public WorkspaceBundle clone() { try { return (WorkspaceBundle) 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.WorkspaceBundleMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy