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

com.amazonaws.services.ec2.model.VerifiedAccessInstance Maven / Gradle / Ivy

Go to download

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

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

import java.io.Serializable;
import javax.annotation.Generated;

/**
 * 

* Describes a Verified Access instance. *

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

* The ID of the Amazon Web Services Verified Access instance. *

*/ private String verifiedAccessInstanceId; /** *

* A description for the Amazon Web Services Verified Access instance. *

*/ private String description; /** *

* The IDs of the Amazon Web Services Verified Access trust providers. *

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

* The creation time. *

*/ private String creationTime; /** *

* The last updated time. *

*/ private String lastUpdatedTime; /** *

* The tags. *

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

* Indicates whether support for Federal Information Processing Standards (FIPS) is enabled on the instance. *

*/ private Boolean fipsEnabled; /** *

* The ID of the Amazon Web Services Verified Access instance. *

* * @param verifiedAccessInstanceId * The ID of the Amazon Web Services Verified Access instance. */ public void setVerifiedAccessInstanceId(String verifiedAccessInstanceId) { this.verifiedAccessInstanceId = verifiedAccessInstanceId; } /** *

* The ID of the Amazon Web Services Verified Access instance. *

* * @return The ID of the Amazon Web Services Verified Access instance. */ public String getVerifiedAccessInstanceId() { return this.verifiedAccessInstanceId; } /** *

* The ID of the Amazon Web Services Verified Access instance. *

* * @param verifiedAccessInstanceId * The ID of the Amazon Web Services Verified Access instance. * @return Returns a reference to this object so that method calls can be chained together. */ public VerifiedAccessInstance withVerifiedAccessInstanceId(String verifiedAccessInstanceId) { setVerifiedAccessInstanceId(verifiedAccessInstanceId); return this; } /** *

* A description for the Amazon Web Services Verified Access instance. *

* * @param description * A description for the Amazon Web Services Verified Access instance. */ public void setDescription(String description) { this.description = description; } /** *

* A description for the Amazon Web Services Verified Access instance. *

* * @return A description for the Amazon Web Services Verified Access instance. */ public String getDescription() { return this.description; } /** *

* A description for the Amazon Web Services Verified Access instance. *

* * @param description * A description for the Amazon Web Services Verified Access instance. * @return Returns a reference to this object so that method calls can be chained together. */ public VerifiedAccessInstance withDescription(String description) { setDescription(description); return this; } /** *

* The IDs of the Amazon Web Services Verified Access trust providers. *

* * @return The IDs of the Amazon Web Services Verified Access trust providers. */ public java.util.List getVerifiedAccessTrustProviders() { if (verifiedAccessTrustProviders == null) { verifiedAccessTrustProviders = new com.amazonaws.internal.SdkInternalList(); } return verifiedAccessTrustProviders; } /** *

* The IDs of the Amazon Web Services Verified Access trust providers. *

* * @param verifiedAccessTrustProviders * The IDs of the Amazon Web Services Verified Access trust providers. */ public void setVerifiedAccessTrustProviders(java.util.Collection verifiedAccessTrustProviders) { if (verifiedAccessTrustProviders == null) { this.verifiedAccessTrustProviders = null; return; } this.verifiedAccessTrustProviders = new com.amazonaws.internal.SdkInternalList(verifiedAccessTrustProviders); } /** *

* The IDs of the Amazon Web Services Verified Access trust providers. *

*

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

* * @param verifiedAccessTrustProviders * The IDs of the Amazon Web Services Verified Access trust providers. * @return Returns a reference to this object so that method calls can be chained together. */ public VerifiedAccessInstance withVerifiedAccessTrustProviders(VerifiedAccessTrustProviderCondensed... verifiedAccessTrustProviders) { if (this.verifiedAccessTrustProviders == null) { setVerifiedAccessTrustProviders(new com.amazonaws.internal.SdkInternalList( verifiedAccessTrustProviders.length)); } for (VerifiedAccessTrustProviderCondensed ele : verifiedAccessTrustProviders) { this.verifiedAccessTrustProviders.add(ele); } return this; } /** *

* The IDs of the Amazon Web Services Verified Access trust providers. *

* * @param verifiedAccessTrustProviders * The IDs of the Amazon Web Services Verified Access trust providers. * @return Returns a reference to this object so that method calls can be chained together. */ public VerifiedAccessInstance withVerifiedAccessTrustProviders(java.util.Collection verifiedAccessTrustProviders) { setVerifiedAccessTrustProviders(verifiedAccessTrustProviders); return this; } /** *

* The creation time. *

* * @param creationTime * The creation time. */ public void setCreationTime(String creationTime) { this.creationTime = creationTime; } /** *

* The creation time. *

* * @return The creation time. */ public String getCreationTime() { return this.creationTime; } /** *

* The creation time. *

* * @param creationTime * The creation time. * @return Returns a reference to this object so that method calls can be chained together. */ public VerifiedAccessInstance withCreationTime(String creationTime) { setCreationTime(creationTime); return this; } /** *

* The last updated time. *

* * @param lastUpdatedTime * The last updated time. */ public void setLastUpdatedTime(String lastUpdatedTime) { this.lastUpdatedTime = lastUpdatedTime; } /** *

* The last updated time. *

* * @return The last updated time. */ public String getLastUpdatedTime() { return this.lastUpdatedTime; } /** *

* The last updated time. *

* * @param lastUpdatedTime * The last updated time. * @return Returns a reference to this object so that method calls can be chained together. */ public VerifiedAccessInstance withLastUpdatedTime(String lastUpdatedTime) { setLastUpdatedTime(lastUpdatedTime); return this; } /** *

* The tags. *

* * @return The tags. */ public java.util.List getTags() { if (tags == null) { tags = new com.amazonaws.internal.SdkInternalList(); } return tags; } /** *

* The tags. *

* * @param tags * The tags. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new com.amazonaws.internal.SdkInternalList(tags); } /** *

* The tags. *

*

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

* * @param tags * The tags. * @return Returns a reference to this object so that method calls can be chained together. */ public VerifiedAccessInstance withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** *

* The tags. *

* * @param tags * The tags. * @return Returns a reference to this object so that method calls can be chained together. */ public VerifiedAccessInstance withTags(java.util.Collection tags) { setTags(tags); return this; } /** *

* Indicates whether support for Federal Information Processing Standards (FIPS) is enabled on the instance. *

* * @param fipsEnabled * Indicates whether support for Federal Information Processing Standards (FIPS) is enabled on the instance. */ public void setFipsEnabled(Boolean fipsEnabled) { this.fipsEnabled = fipsEnabled; } /** *

* Indicates whether support for Federal Information Processing Standards (FIPS) is enabled on the instance. *

* * @return Indicates whether support for Federal Information Processing Standards (FIPS) is enabled on the instance. */ public Boolean getFipsEnabled() { return this.fipsEnabled; } /** *

* Indicates whether support for Federal Information Processing Standards (FIPS) is enabled on the instance. *

* * @param fipsEnabled * Indicates whether support for Federal Information Processing Standards (FIPS) is enabled on the instance. * @return Returns a reference to this object so that method calls can be chained together. */ public VerifiedAccessInstance withFipsEnabled(Boolean fipsEnabled) { setFipsEnabled(fipsEnabled); return this; } /** *

* Indicates whether support for Federal Information Processing Standards (FIPS) is enabled on the instance. *

* * @return Indicates whether support for Federal Information Processing Standards (FIPS) is enabled on the instance. */ public Boolean isFipsEnabled() { return this.fipsEnabled; } /** * 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 (getVerifiedAccessInstanceId() != null) sb.append("VerifiedAccessInstanceId: ").append(getVerifiedAccessInstanceId()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getVerifiedAccessTrustProviders() != null) sb.append("VerifiedAccessTrustProviders: ").append(getVerifiedAccessTrustProviders()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getLastUpdatedTime() != null) sb.append("LastUpdatedTime: ").append(getLastUpdatedTime()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getFipsEnabled() != null) sb.append("FipsEnabled: ").append(getFipsEnabled()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof VerifiedAccessInstance == false) return false; VerifiedAccessInstance other = (VerifiedAccessInstance) obj; if (other.getVerifiedAccessInstanceId() == null ^ this.getVerifiedAccessInstanceId() == null) return false; if (other.getVerifiedAccessInstanceId() != null && other.getVerifiedAccessInstanceId().equals(this.getVerifiedAccessInstanceId()) == 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.getVerifiedAccessTrustProviders() == null ^ this.getVerifiedAccessTrustProviders() == null) return false; if (other.getVerifiedAccessTrustProviders() != null && other.getVerifiedAccessTrustProviders().equals(this.getVerifiedAccessTrustProviders()) == 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.getLastUpdatedTime() == null ^ this.getLastUpdatedTime() == null) return false; if (other.getLastUpdatedTime() != null && other.getLastUpdatedTime().equals(this.getLastUpdatedTime()) == 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.getFipsEnabled() == null ^ this.getFipsEnabled() == null) return false; if (other.getFipsEnabled() != null && other.getFipsEnabled().equals(this.getFipsEnabled()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getVerifiedAccessInstanceId() == null) ? 0 : getVerifiedAccessInstanceId().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getVerifiedAccessTrustProviders() == null) ? 0 : getVerifiedAccessTrustProviders().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedTime() == null) ? 0 : getLastUpdatedTime().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getFipsEnabled() == null) ? 0 : getFipsEnabled().hashCode()); return hashCode; } @Override public VerifiedAccessInstance clone() { try { return (VerifiedAccessInstance) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy