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.772
Show newest version
/*
 * Copyright 2016-2021 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 bundle identifier. *

*/ 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 AWS. *

*/ private String owner; /** *

* A description. *

*/ private String description; /** *

* The image identifier of the bundle. *

*/ private String imageId; /** *

* The size of the root volume. *

*/ private RootStorage rootStorage; /** *

* The size of the user storage. *

*/ private UserStorage userStorage; /** *

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

*/ private ComputeType computeType; /** *

* The last time that the bundle was updated. *

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

* The bundle identifier. *

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

* The bundle identifier. *

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

* The bundle identifier. *

* * @param bundleId * The bundle identifier. * @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 AWS. *

* * @param owner * The owner of the bundle. This is the account identifier of the owner, or AMAZON if the bundle * is provided by AWS. */ 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 AWS. *

* * @return The owner of the bundle. This is the account identifier of the owner, or AMAZON if the * bundle is provided by AWS. */ 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 AWS. *

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

* A description. *

* * @param description * A description. */ public void setDescription(String description) { this.description = description; } /** *

* A description. *

* * @return A description. */ public String getDescription() { return this.description; } /** *

* A description. *

* * @param description * A description. * @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 image identifier of the bundle. *

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

* The image identifier of the bundle. *

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

* The image identifier of the bundle. *

* * @param imageId * The image identifier of 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 storage. *

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

* The size of the user storage. *

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

* The size of the user storage. *

* * @param userStorage * The size of the user storage. * @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. For more information, see Amazon WorkSpaces Bundles. *

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

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

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

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

* * @param computeType * The compute type. 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; } /** * 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()); 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; 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()); 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