com.amazonaws.services.outposts.model.Outpost Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-outposts Show documentation
Show all versions of aws-java-sdk-outposts Show documentation
The AWS Java SDK for AWS Outposts module holds the client classes that are used for communicating with AWS Outposts Service
/*
* 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.outposts.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Information about an Outpost.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class Outpost implements Serializable, Cloneable, StructuredPojo {
/**
*
* The ID of the Outpost.
*
*/
private String outpostId;
private String ownerId;
private String outpostArn;
private String siteId;
private String name;
private String description;
private String lifeCycleStatus;
private String availabilityZone;
private String availabilityZoneId;
/**
*
* The Outpost tags.
*
*/
private java.util.Map tags;
private String siteArn;
/**
*
* The hardware type.
*
*/
private String supportedHardwareType;
/**
*
* The ID of the Outpost.
*
*
* @param outpostId
* The ID of the Outpost.
*/
public void setOutpostId(String outpostId) {
this.outpostId = outpostId;
}
/**
*
* The ID of the Outpost.
*
*
* @return The ID of the Outpost.
*/
public String getOutpostId() {
return this.outpostId;
}
/**
*
* The ID of the Outpost.
*
*
* @param outpostId
* The ID of the Outpost.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Outpost withOutpostId(String outpostId) {
setOutpostId(outpostId);
return this;
}
/**
* @param ownerId
*/
public void setOwnerId(String ownerId) {
this.ownerId = ownerId;
}
/**
* @return
*/
public String getOwnerId() {
return this.ownerId;
}
/**
* @param ownerId
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Outpost withOwnerId(String ownerId) {
setOwnerId(ownerId);
return this;
}
/**
* @param outpostArn
*/
public void setOutpostArn(String outpostArn) {
this.outpostArn = outpostArn;
}
/**
* @return
*/
public String getOutpostArn() {
return this.outpostArn;
}
/**
* @param outpostArn
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Outpost withOutpostArn(String outpostArn) {
setOutpostArn(outpostArn);
return this;
}
/**
* @param siteId
*/
public void setSiteId(String siteId) {
this.siteId = siteId;
}
/**
* @return
*/
public String getSiteId() {
return this.siteId;
}
/**
* @param siteId
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Outpost withSiteId(String siteId) {
setSiteId(siteId);
return this;
}
/**
* @param name
*/
public void setName(String name) {
this.name = name;
}
/**
* @return
*/
public String getName() {
return this.name;
}
/**
* @param name
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Outpost withName(String name) {
setName(name);
return this;
}
/**
* @param description
*/
public void setDescription(String description) {
this.description = description;
}
/**
* @return
*/
public String getDescription() {
return this.description;
}
/**
* @param description
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Outpost withDescription(String description) {
setDescription(description);
return this;
}
/**
* @param lifeCycleStatus
*/
public void setLifeCycleStatus(String lifeCycleStatus) {
this.lifeCycleStatus = lifeCycleStatus;
}
/**
* @return
*/
public String getLifeCycleStatus() {
return this.lifeCycleStatus;
}
/**
* @param lifeCycleStatus
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Outpost withLifeCycleStatus(String lifeCycleStatus) {
setLifeCycleStatus(lifeCycleStatus);
return this;
}
/**
* @param availabilityZone
*/
public void setAvailabilityZone(String availabilityZone) {
this.availabilityZone = availabilityZone;
}
/**
* @return
*/
public String getAvailabilityZone() {
return this.availabilityZone;
}
/**
* @param availabilityZone
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Outpost withAvailabilityZone(String availabilityZone) {
setAvailabilityZone(availabilityZone);
return this;
}
/**
* @param availabilityZoneId
*/
public void setAvailabilityZoneId(String availabilityZoneId) {
this.availabilityZoneId = availabilityZoneId;
}
/**
* @return
*/
public String getAvailabilityZoneId() {
return this.availabilityZoneId;
}
/**
* @param availabilityZoneId
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Outpost withAvailabilityZoneId(String availabilityZoneId) {
setAvailabilityZoneId(availabilityZoneId);
return this;
}
/**
*
* The Outpost tags.
*
*
* @return The Outpost tags.
*/
public java.util.Map getTags() {
return tags;
}
/**
*
* The Outpost tags.
*
*
* @param tags
* The Outpost tags.
*/
public void setTags(java.util.Map tags) {
this.tags = tags;
}
/**
*
* The Outpost tags.
*
*
* @param tags
* The Outpost tags.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Outpost withTags(java.util.Map tags) {
setTags(tags);
return this;
}
/**
* Add a single Tags entry
*
* @see Outpost#withTags
* @returns a reference to this object so that method calls can be chained together.
*/
public Outpost addTagsEntry(String key, String value) {
if (null == this.tags) {
this.tags = new java.util.HashMap();
}
if (this.tags.containsKey(key))
throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
this.tags.put(key, value);
return this;
}
/**
* Removes all the entries added into Tags.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Outpost clearTagsEntries() {
this.tags = null;
return this;
}
/**
* @param siteArn
*/
public void setSiteArn(String siteArn) {
this.siteArn = siteArn;
}
/**
* @return
*/
public String getSiteArn() {
return this.siteArn;
}
/**
* @param siteArn
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Outpost withSiteArn(String siteArn) {
setSiteArn(siteArn);
return this;
}
/**
*
* The hardware type.
*
*
* @param supportedHardwareType
* The hardware type.
* @see SupportedHardwareType
*/
public void setSupportedHardwareType(String supportedHardwareType) {
this.supportedHardwareType = supportedHardwareType;
}
/**
*
* The hardware type.
*
*
* @return The hardware type.
* @see SupportedHardwareType
*/
public String getSupportedHardwareType() {
return this.supportedHardwareType;
}
/**
*
* The hardware type.
*
*
* @param supportedHardwareType
* The hardware type.
* @return Returns a reference to this object so that method calls can be chained together.
* @see SupportedHardwareType
*/
public Outpost withSupportedHardwareType(String supportedHardwareType) {
setSupportedHardwareType(supportedHardwareType);
return this;
}
/**
*
* The hardware type.
*
*
* @param supportedHardwareType
* The hardware type.
* @return Returns a reference to this object so that method calls can be chained together.
* @see SupportedHardwareType
*/
public Outpost withSupportedHardwareType(SupportedHardwareType supportedHardwareType) {
this.supportedHardwareType = supportedHardwareType.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 (getOutpostId() != null)
sb.append("OutpostId: ").append(getOutpostId()).append(",");
if (getOwnerId() != null)
sb.append("OwnerId: ").append(getOwnerId()).append(",");
if (getOutpostArn() != null)
sb.append("OutpostArn: ").append(getOutpostArn()).append(",");
if (getSiteId() != null)
sb.append("SiteId: ").append(getSiteId()).append(",");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getDescription() != null)
sb.append("Description: ").append(getDescription()).append(",");
if (getLifeCycleStatus() != null)
sb.append("LifeCycleStatus: ").append(getLifeCycleStatus()).append(",");
if (getAvailabilityZone() != null)
sb.append("AvailabilityZone: ").append(getAvailabilityZone()).append(",");
if (getAvailabilityZoneId() != null)
sb.append("AvailabilityZoneId: ").append(getAvailabilityZoneId()).append(",");
if (getTags() != null)
sb.append("Tags: ").append(getTags()).append(",");
if (getSiteArn() != null)
sb.append("SiteArn: ").append(getSiteArn()).append(",");
if (getSupportedHardwareType() != null)
sb.append("SupportedHardwareType: ").append(getSupportedHardwareType());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof Outpost == false)
return false;
Outpost other = (Outpost) obj;
if (other.getOutpostId() == null ^ this.getOutpostId() == null)
return false;
if (other.getOutpostId() != null && other.getOutpostId().equals(this.getOutpostId()) == false)
return false;
if (other.getOwnerId() == null ^ this.getOwnerId() == null)
return false;
if (other.getOwnerId() != null && other.getOwnerId().equals(this.getOwnerId()) == false)
return false;
if (other.getOutpostArn() == null ^ this.getOutpostArn() == null)
return false;
if (other.getOutpostArn() != null && other.getOutpostArn().equals(this.getOutpostArn()) == false)
return false;
if (other.getSiteId() == null ^ this.getSiteId() == null)
return false;
if (other.getSiteId() != null && other.getSiteId().equals(this.getSiteId()) == 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.getDescription() == null ^ this.getDescription() == null)
return false;
if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false)
return false;
if (other.getLifeCycleStatus() == null ^ this.getLifeCycleStatus() == null)
return false;
if (other.getLifeCycleStatus() != null && other.getLifeCycleStatus().equals(this.getLifeCycleStatus()) == false)
return false;
if (other.getAvailabilityZone() == null ^ this.getAvailabilityZone() == null)
return false;
if (other.getAvailabilityZone() != null && other.getAvailabilityZone().equals(this.getAvailabilityZone()) == false)
return false;
if (other.getAvailabilityZoneId() == null ^ this.getAvailabilityZoneId() == null)
return false;
if (other.getAvailabilityZoneId() != null && other.getAvailabilityZoneId().equals(this.getAvailabilityZoneId()) == false)
return false;
if (other.getTags() == null ^ this.getTags() == null)
return false;
if (other.getTags() != null && other.getTags().equals(this.getTags()) == false)
return false;
if (other.getSiteArn() == null ^ this.getSiteArn() == null)
return false;
if (other.getSiteArn() != null && other.getSiteArn().equals(this.getSiteArn()) == false)
return false;
if (other.getSupportedHardwareType() == null ^ this.getSupportedHardwareType() == null)
return false;
if (other.getSupportedHardwareType() != null && other.getSupportedHardwareType().equals(this.getSupportedHardwareType()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getOutpostId() == null) ? 0 : getOutpostId().hashCode());
hashCode = prime * hashCode + ((getOwnerId() == null) ? 0 : getOwnerId().hashCode());
hashCode = prime * hashCode + ((getOutpostArn() == null) ? 0 : getOutpostArn().hashCode());
hashCode = prime * hashCode + ((getSiteId() == null) ? 0 : getSiteId().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode + ((getLifeCycleStatus() == null) ? 0 : getLifeCycleStatus().hashCode());
hashCode = prime * hashCode + ((getAvailabilityZone() == null) ? 0 : getAvailabilityZone().hashCode());
hashCode = prime * hashCode + ((getAvailabilityZoneId() == null) ? 0 : getAvailabilityZoneId().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
hashCode = prime * hashCode + ((getSiteArn() == null) ? 0 : getSiteArn().hashCode());
hashCode = prime * hashCode + ((getSupportedHardwareType() == null) ? 0 : getSupportedHardwareType().hashCode());
return hashCode;
}
@Override
public Outpost clone() {
try {
return (Outpost) 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.outposts.model.transform.OutpostMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy