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

com.amazonaws.services.worklink.model.FleetSummary Maven / Gradle / Ivy

/*
 * Copyright 2015-2020 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.worklink.model;

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

/**
 * 

* The summary of the fleet. *

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

* The Amazon Resource Name (ARN) of the fleet. *

*/ private String fleetArn; /** *

* The time when the fleet was created. *

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

* The time when the fleet was last updated. *

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

* The name of the fleet. *

*/ private String fleetName; /** *

* The name of the fleet to display. *

*/ private String displayName; /** *

* The identifier used by users to sign into the Amazon WorkLink app. *

*/ private String companyCode; /** *

* The status of the fleet. *

*/ private String fleetStatus; /** *

* The tags attached to the resource. A tag is a key-value pair. *

*/ private java.util.Map tags; /** *

* The Amazon Resource Name (ARN) of the fleet. *

* * @param fleetArn * The Amazon Resource Name (ARN) of the fleet. */ public void setFleetArn(String fleetArn) { this.fleetArn = fleetArn; } /** *

* The Amazon Resource Name (ARN) of the fleet. *

* * @return The Amazon Resource Name (ARN) of the fleet. */ public String getFleetArn() { return this.fleetArn; } /** *

* The Amazon Resource Name (ARN) of the fleet. *

* * @param fleetArn * The Amazon Resource Name (ARN) of the fleet. * @return Returns a reference to this object so that method calls can be chained together. */ public FleetSummary withFleetArn(String fleetArn) { setFleetArn(fleetArn); return this; } /** *

* The time when the fleet was created. *

* * @param createdTime * The time when the fleet was created. */ public void setCreatedTime(java.util.Date createdTime) { this.createdTime = createdTime; } /** *

* The time when the fleet was created. *

* * @return The time when the fleet was created. */ public java.util.Date getCreatedTime() { return this.createdTime; } /** *

* The time when the fleet was created. *

* * @param createdTime * The time when the fleet was created. * @return Returns a reference to this object so that method calls can be chained together. */ public FleetSummary withCreatedTime(java.util.Date createdTime) { setCreatedTime(createdTime); return this; } /** *

* The time when the fleet was last updated. *

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

* The time when the fleet was last updated. *

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

* The time when the fleet was last updated. *

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

* The name of the fleet. *

* * @param fleetName * The name of the fleet. */ public void setFleetName(String fleetName) { this.fleetName = fleetName; } /** *

* The name of the fleet. *

* * @return The name of the fleet. */ public String getFleetName() { return this.fleetName; } /** *

* The name of the fleet. *

* * @param fleetName * The name of the fleet. * @return Returns a reference to this object so that method calls can be chained together. */ public FleetSummary withFleetName(String fleetName) { setFleetName(fleetName); return this; } /** *

* The name of the fleet to display. *

* * @param displayName * The name of the fleet to display. */ public void setDisplayName(String displayName) { this.displayName = displayName; } /** *

* The name of the fleet to display. *

* * @return The name of the fleet to display. */ public String getDisplayName() { return this.displayName; } /** *

* The name of the fleet to display. *

* * @param displayName * The name of the fleet to display. * @return Returns a reference to this object so that method calls can be chained together. */ public FleetSummary withDisplayName(String displayName) { setDisplayName(displayName); return this; } /** *

* The identifier used by users to sign into the Amazon WorkLink app. *

* * @param companyCode * The identifier used by users to sign into the Amazon WorkLink app. */ public void setCompanyCode(String companyCode) { this.companyCode = companyCode; } /** *

* The identifier used by users to sign into the Amazon WorkLink app. *

* * @return The identifier used by users to sign into the Amazon WorkLink app. */ public String getCompanyCode() { return this.companyCode; } /** *

* The identifier used by users to sign into the Amazon WorkLink app. *

* * @param companyCode * The identifier used by users to sign into the Amazon WorkLink app. * @return Returns a reference to this object so that method calls can be chained together. */ public FleetSummary withCompanyCode(String companyCode) { setCompanyCode(companyCode); return this; } /** *

* The status of the fleet. *

* * @param fleetStatus * The status of the fleet. * @see FleetStatus */ public void setFleetStatus(String fleetStatus) { this.fleetStatus = fleetStatus; } /** *

* The status of the fleet. *

* * @return The status of the fleet. * @see FleetStatus */ public String getFleetStatus() { return this.fleetStatus; } /** *

* The status of the fleet. *

* * @param fleetStatus * The status of the fleet. * @return Returns a reference to this object so that method calls can be chained together. * @see FleetStatus */ public FleetSummary withFleetStatus(String fleetStatus) { setFleetStatus(fleetStatus); return this; } /** *

* The status of the fleet. *

* * @param fleetStatus * The status of the fleet. * @return Returns a reference to this object so that method calls can be chained together. * @see FleetStatus */ public FleetSummary withFleetStatus(FleetStatus fleetStatus) { this.fleetStatus = fleetStatus.toString(); return this; } /** *

* The tags attached to the resource. A tag is a key-value pair. *

* * @return The tags attached to the resource. A tag is a key-value pair. */ public java.util.Map getTags() { return tags; } /** *

* The tags attached to the resource. A tag is a key-value pair. *

* * @param tags * The tags attached to the resource. A tag is a key-value pair. */ public void setTags(java.util.Map tags) { this.tags = tags; } /** *

* The tags attached to the resource. A tag is a key-value pair. *

* * @param tags * The tags attached to the resource. A tag is a key-value pair. * @return Returns a reference to this object so that method calls can be chained together. */ public FleetSummary withTags(java.util.Map tags) { setTags(tags); return this; } /** * Add a single Tags entry * * @see FleetSummary#withTags * @returns a reference to this object so that method calls can be chained together. */ public FleetSummary 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 FleetSummary clearTagsEntries() { this.tags = null; 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 (getFleetArn() != null) sb.append("FleetArn: ").append(getFleetArn()).append(","); if (getCreatedTime() != null) sb.append("CreatedTime: ").append(getCreatedTime()).append(","); if (getLastUpdatedTime() != null) sb.append("LastUpdatedTime: ").append(getLastUpdatedTime()).append(","); if (getFleetName() != null) sb.append("FleetName: ").append(getFleetName()).append(","); if (getDisplayName() != null) sb.append("DisplayName: ").append(getDisplayName()).append(","); if (getCompanyCode() != null) sb.append("CompanyCode: ").append(getCompanyCode()).append(","); if (getFleetStatus() != null) sb.append("FleetStatus: ").append(getFleetStatus()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof FleetSummary == false) return false; FleetSummary other = (FleetSummary) obj; if (other.getFleetArn() == null ^ this.getFleetArn() == null) return false; if (other.getFleetArn() != null && other.getFleetArn().equals(this.getFleetArn()) == false) return false; if (other.getCreatedTime() == null ^ this.getCreatedTime() == null) return false; if (other.getCreatedTime() != null && other.getCreatedTime().equals(this.getCreatedTime()) == 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.getFleetName() == null ^ this.getFleetName() == null) return false; if (other.getFleetName() != null && other.getFleetName().equals(this.getFleetName()) == 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.getCompanyCode() == null ^ this.getCompanyCode() == null) return false; if (other.getCompanyCode() != null && other.getCompanyCode().equals(this.getCompanyCode()) == false) return false; if (other.getFleetStatus() == null ^ this.getFleetStatus() == null) return false; if (other.getFleetStatus() != null && other.getFleetStatus().equals(this.getFleetStatus()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFleetArn() == null) ? 0 : getFleetArn().hashCode()); hashCode = prime * hashCode + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedTime() == null) ? 0 : getLastUpdatedTime().hashCode()); hashCode = prime * hashCode + ((getFleetName() == null) ? 0 : getFleetName().hashCode()); hashCode = prime * hashCode + ((getDisplayName() == null) ? 0 : getDisplayName().hashCode()); hashCode = prime * hashCode + ((getCompanyCode() == null) ? 0 : getCompanyCode().hashCode()); hashCode = prime * hashCode + ((getFleetStatus() == null) ? 0 : getFleetStatus().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @Override public FleetSummary clone() { try { return (FleetSummary) 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.worklink.model.transform.FleetSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy