com.amazonaws.services.ec2.model.VerifiedAccessTrustProvider Maven / Gradle / Ivy
Show all versions of aws-java-sdk-ec2 Show documentation
/*
* Copyright 2018-2023 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 trust provider.
*
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class VerifiedAccessTrustProvider implements Serializable, Cloneable {
/**
*
* The ID of the Amazon Web Services Verified Access trust provider.
*
*/
private String verifiedAccessTrustProviderId;
/**
*
* A description for the Amazon Web Services Verified Access trust provider.
*
*/
private String description;
/**
*
* The type of Verified Access trust provider.
*
*/
private String trustProviderType;
/**
*
* The type of user-based trust provider.
*
*/
private String userTrustProviderType;
/**
*
* The type of device-based trust provider.
*
*/
private String deviceTrustProviderType;
/**
*
* The options for an OpenID Connect-compatible user-identity trust provider.
*
*/
private OidcOptions oidcOptions;
/**
*
* The options for device-identity trust provider.
*
*/
private DeviceOptions deviceOptions;
/**
*
* The identifier to be used when working with policy rules.
*
*/
private String policyReferenceName;
/**
*
* The creation time.
*
*/
private String creationTime;
/**
*
* The last updated time.
*
*/
private String lastUpdatedTime;
/**
*
* The tags.
*
*/
private com.amazonaws.internal.SdkInternalList tags;
/**
*
* The ID of the Amazon Web Services Verified Access trust provider.
*
*
* @param verifiedAccessTrustProviderId
* The ID of the Amazon Web Services Verified Access trust provider.
*/
public void setVerifiedAccessTrustProviderId(String verifiedAccessTrustProviderId) {
this.verifiedAccessTrustProviderId = verifiedAccessTrustProviderId;
}
/**
*
* The ID of the Amazon Web Services Verified Access trust provider.
*
*
* @return The ID of the Amazon Web Services Verified Access trust provider.
*/
public String getVerifiedAccessTrustProviderId() {
return this.verifiedAccessTrustProviderId;
}
/**
*
* The ID of the Amazon Web Services Verified Access trust provider.
*
*
* @param verifiedAccessTrustProviderId
* The ID of the Amazon Web Services Verified Access trust provider.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VerifiedAccessTrustProvider withVerifiedAccessTrustProviderId(String verifiedAccessTrustProviderId) {
setVerifiedAccessTrustProviderId(verifiedAccessTrustProviderId);
return this;
}
/**
*
* A description for the Amazon Web Services Verified Access trust provider.
*
*
* @param description
* A description for the Amazon Web Services Verified Access trust provider.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* A description for the Amazon Web Services Verified Access trust provider.
*
*
* @return A description for the Amazon Web Services Verified Access trust provider.
*/
public String getDescription() {
return this.description;
}
/**
*
* A description for the Amazon Web Services Verified Access trust provider.
*
*
* @param description
* A description for the Amazon Web Services Verified Access trust provider.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VerifiedAccessTrustProvider withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* The type of Verified Access trust provider.
*
*
* @param trustProviderType
* The type of Verified Access trust provider.
* @see TrustProviderType
*/
public void setTrustProviderType(String trustProviderType) {
this.trustProviderType = trustProviderType;
}
/**
*
* The type of Verified Access trust provider.
*
*
* @return The type of Verified Access trust provider.
* @see TrustProviderType
*/
public String getTrustProviderType() {
return this.trustProviderType;
}
/**
*
* The type of Verified Access trust provider.
*
*
* @param trustProviderType
* The type of Verified Access trust provider.
* @return Returns a reference to this object so that method calls can be chained together.
* @see TrustProviderType
*/
public VerifiedAccessTrustProvider withTrustProviderType(String trustProviderType) {
setTrustProviderType(trustProviderType);
return this;
}
/**
*
* The type of Verified Access trust provider.
*
*
* @param trustProviderType
* The type of Verified Access trust provider.
* @return Returns a reference to this object so that method calls can be chained together.
* @see TrustProviderType
*/
public VerifiedAccessTrustProvider withTrustProviderType(TrustProviderType trustProviderType) {
this.trustProviderType = trustProviderType.toString();
return this;
}
/**
*
* The type of user-based trust provider.
*
*
* @param userTrustProviderType
* The type of user-based trust provider.
* @see UserTrustProviderType
*/
public void setUserTrustProviderType(String userTrustProviderType) {
this.userTrustProviderType = userTrustProviderType;
}
/**
*
* The type of user-based trust provider.
*
*
* @return The type of user-based trust provider.
* @see UserTrustProviderType
*/
public String getUserTrustProviderType() {
return this.userTrustProviderType;
}
/**
*
* The type of user-based trust provider.
*
*
* @param userTrustProviderType
* The type of user-based trust provider.
* @return Returns a reference to this object so that method calls can be chained together.
* @see UserTrustProviderType
*/
public VerifiedAccessTrustProvider withUserTrustProviderType(String userTrustProviderType) {
setUserTrustProviderType(userTrustProviderType);
return this;
}
/**
*
* The type of user-based trust provider.
*
*
* @param userTrustProviderType
* The type of user-based trust provider.
* @return Returns a reference to this object so that method calls can be chained together.
* @see UserTrustProviderType
*/
public VerifiedAccessTrustProvider withUserTrustProviderType(UserTrustProviderType userTrustProviderType) {
this.userTrustProviderType = userTrustProviderType.toString();
return this;
}
/**
*
* The type of device-based trust provider.
*
*
* @param deviceTrustProviderType
* The type of device-based trust provider.
* @see DeviceTrustProviderType
*/
public void setDeviceTrustProviderType(String deviceTrustProviderType) {
this.deviceTrustProviderType = deviceTrustProviderType;
}
/**
*
* The type of device-based trust provider.
*
*
* @return The type of device-based trust provider.
* @see DeviceTrustProviderType
*/
public String getDeviceTrustProviderType() {
return this.deviceTrustProviderType;
}
/**
*
* The type of device-based trust provider.
*
*
* @param deviceTrustProviderType
* The type of device-based trust provider.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DeviceTrustProviderType
*/
public VerifiedAccessTrustProvider withDeviceTrustProviderType(String deviceTrustProviderType) {
setDeviceTrustProviderType(deviceTrustProviderType);
return this;
}
/**
*
* The type of device-based trust provider.
*
*
* @param deviceTrustProviderType
* The type of device-based trust provider.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DeviceTrustProviderType
*/
public VerifiedAccessTrustProvider withDeviceTrustProviderType(DeviceTrustProviderType deviceTrustProviderType) {
this.deviceTrustProviderType = deviceTrustProviderType.toString();
return this;
}
/**
*
* The options for an OpenID Connect-compatible user-identity trust provider.
*
*
* @param oidcOptions
* The options for an OpenID Connect-compatible user-identity trust provider.
*/
public void setOidcOptions(OidcOptions oidcOptions) {
this.oidcOptions = oidcOptions;
}
/**
*
* The options for an OpenID Connect-compatible user-identity trust provider.
*
*
* @return The options for an OpenID Connect-compatible user-identity trust provider.
*/
public OidcOptions getOidcOptions() {
return this.oidcOptions;
}
/**
*
* The options for an OpenID Connect-compatible user-identity trust provider.
*
*
* @param oidcOptions
* The options for an OpenID Connect-compatible user-identity trust provider.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VerifiedAccessTrustProvider withOidcOptions(OidcOptions oidcOptions) {
setOidcOptions(oidcOptions);
return this;
}
/**
*
* The options for device-identity trust provider.
*
*
* @param deviceOptions
* The options for device-identity trust provider.
*/
public void setDeviceOptions(DeviceOptions deviceOptions) {
this.deviceOptions = deviceOptions;
}
/**
*
* The options for device-identity trust provider.
*
*
* @return The options for device-identity trust provider.
*/
public DeviceOptions getDeviceOptions() {
return this.deviceOptions;
}
/**
*
* The options for device-identity trust provider.
*
*
* @param deviceOptions
* The options for device-identity trust provider.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VerifiedAccessTrustProvider withDeviceOptions(DeviceOptions deviceOptions) {
setDeviceOptions(deviceOptions);
return this;
}
/**
*
* The identifier to be used when working with policy rules.
*
*
* @param policyReferenceName
* The identifier to be used when working with policy rules.
*/
public void setPolicyReferenceName(String policyReferenceName) {
this.policyReferenceName = policyReferenceName;
}
/**
*
* The identifier to be used when working with policy rules.
*
*
* @return The identifier to be used when working with policy rules.
*/
public String getPolicyReferenceName() {
return this.policyReferenceName;
}
/**
*
* The identifier to be used when working with policy rules.
*
*
* @param policyReferenceName
* The identifier to be used when working with policy rules.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VerifiedAccessTrustProvider withPolicyReferenceName(String policyReferenceName) {
setPolicyReferenceName(policyReferenceName);
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 VerifiedAccessTrustProvider 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 VerifiedAccessTrustProvider 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 VerifiedAccessTrustProvider 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 VerifiedAccessTrustProvider withTags(java.util.Collection tags) {
setTags(tags);
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 (getVerifiedAccessTrustProviderId() != null)
sb.append("VerifiedAccessTrustProviderId: ").append(getVerifiedAccessTrustProviderId()).append(",");
if (getDescription() != null)
sb.append("Description: ").append(getDescription()).append(",");
if (getTrustProviderType() != null)
sb.append("TrustProviderType: ").append(getTrustProviderType()).append(",");
if (getUserTrustProviderType() != null)
sb.append("UserTrustProviderType: ").append(getUserTrustProviderType()).append(",");
if (getDeviceTrustProviderType() != null)
sb.append("DeviceTrustProviderType: ").append(getDeviceTrustProviderType()).append(",");
if (getOidcOptions() != null)
sb.append("OidcOptions: ").append(getOidcOptions()).append(",");
if (getDeviceOptions() != null)
sb.append("DeviceOptions: ").append(getDeviceOptions()).append(",");
if (getPolicyReferenceName() != null)
sb.append("PolicyReferenceName: ").append(getPolicyReferenceName()).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());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof VerifiedAccessTrustProvider == false)
return false;
VerifiedAccessTrustProvider other = (VerifiedAccessTrustProvider) obj;
if (other.getVerifiedAccessTrustProviderId() == null ^ this.getVerifiedAccessTrustProviderId() == null)
return false;
if (other.getVerifiedAccessTrustProviderId() != null
&& other.getVerifiedAccessTrustProviderId().equals(this.getVerifiedAccessTrustProviderId()) == 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.getTrustProviderType() == null ^ this.getTrustProviderType() == null)
return false;
if (other.getTrustProviderType() != null && other.getTrustProviderType().equals(this.getTrustProviderType()) == false)
return false;
if (other.getUserTrustProviderType() == null ^ this.getUserTrustProviderType() == null)
return false;
if (other.getUserTrustProviderType() != null && other.getUserTrustProviderType().equals(this.getUserTrustProviderType()) == false)
return false;
if (other.getDeviceTrustProviderType() == null ^ this.getDeviceTrustProviderType() == null)
return false;
if (other.getDeviceTrustProviderType() != null && other.getDeviceTrustProviderType().equals(this.getDeviceTrustProviderType()) == false)
return false;
if (other.getOidcOptions() == null ^ this.getOidcOptions() == null)
return false;
if (other.getOidcOptions() != null && other.getOidcOptions().equals(this.getOidcOptions()) == false)
return false;
if (other.getDeviceOptions() == null ^ this.getDeviceOptions() == null)
return false;
if (other.getDeviceOptions() != null && other.getDeviceOptions().equals(this.getDeviceOptions()) == false)
return false;
if (other.getPolicyReferenceName() == null ^ this.getPolicyReferenceName() == null)
return false;
if (other.getPolicyReferenceName() != null && other.getPolicyReferenceName().equals(this.getPolicyReferenceName()) == 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;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getVerifiedAccessTrustProviderId() == null) ? 0 : getVerifiedAccessTrustProviderId().hashCode());
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode + ((getTrustProviderType() == null) ? 0 : getTrustProviderType().hashCode());
hashCode = prime * hashCode + ((getUserTrustProviderType() == null) ? 0 : getUserTrustProviderType().hashCode());
hashCode = prime * hashCode + ((getDeviceTrustProviderType() == null) ? 0 : getDeviceTrustProviderType().hashCode());
hashCode = prime * hashCode + ((getOidcOptions() == null) ? 0 : getOidcOptions().hashCode());
hashCode = prime * hashCode + ((getDeviceOptions() == null) ? 0 : getDeviceOptions().hashCode());
hashCode = prime * hashCode + ((getPolicyReferenceName() == null) ? 0 : getPolicyReferenceName().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());
return hashCode;
}
@Override
public VerifiedAccessTrustProvider clone() {
try {
return (VerifiedAccessTrustProvider) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}