/* * 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* 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* The tags. *
* * @param tags * The tags. */ public void setTags(java.util.Collection* 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* 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