/* * 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.iamrolesanywhere.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateTrustAnchorRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* Specifies whether the trust anchor is enabled. *
*/ private Boolean enabled; /** ** The name of the trust anchor. *
*/ private String name; /** ** A list of notification settings to be associated to the trust anchor. *
*/ private java.util.List* The trust anchor type and its related certificate data. *
*/ private Source source; /** ** The tags to attach to the trust anchor. *
*/ private java.util.List* Specifies whether the trust anchor is enabled. *
* * @param enabled * Specifies whether the trust anchor is enabled. */ public void setEnabled(Boolean enabled) { this.enabled = enabled; } /** ** Specifies whether the trust anchor is enabled. *
* * @return Specifies whether the trust anchor is enabled. */ public Boolean getEnabled() { return this.enabled; } /** ** Specifies whether the trust anchor is enabled. *
* * @param enabled * Specifies whether the trust anchor is enabled. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTrustAnchorRequest withEnabled(Boolean enabled) { setEnabled(enabled); return this; } /** ** Specifies whether the trust anchor is enabled. *
* * @return Specifies whether the trust anchor is enabled. */ public Boolean isEnabled() { return this.enabled; } /** ** The name of the trust anchor. *
* * @param name * The name of the trust anchor. */ public void setName(String name) { this.name = name; } /** ** The name of the trust anchor. *
* * @return The name of the trust anchor. */ public String getName() { return this.name; } /** ** The name of the trust anchor. *
* * @param name * The name of the trust anchor. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTrustAnchorRequest withName(String name) { setName(name); return this; } /** ** A list of notification settings to be associated to the trust anchor. *
* * @return A list of notification settings to be associated to the trust anchor. */ public java.util.List* A list of notification settings to be associated to the trust anchor. *
* * @param notificationSettings * A list of notification settings to be associated to the trust anchor. */ public void setNotificationSettings(java.util.Collection* A list of notification settings to be associated to the trust anchor. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setNotificationSettings(java.util.Collection)} or {@link #withNotificationSettings(java.util.Collection)} * if you want to override the existing values. *
* * @param notificationSettings * A list of notification settings to be associated to the trust anchor. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTrustAnchorRequest withNotificationSettings(NotificationSetting... notificationSettings) { if (this.notificationSettings == null) { setNotificationSettings(new java.util.ArrayList* A list of notification settings to be associated to the trust anchor. *
* * @param notificationSettings * A list of notification settings to be associated to the trust anchor. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTrustAnchorRequest withNotificationSettings(java.util.Collection* The trust anchor type and its related certificate data. *
* * @param source * The trust anchor type and its related certificate data. */ public void setSource(Source source) { this.source = source; } /** ** The trust anchor type and its related certificate data. *
* * @return The trust anchor type and its related certificate data. */ public Source getSource() { return this.source; } /** ** The trust anchor type and its related certificate data. *
* * @param source * The trust anchor type and its related certificate data. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTrustAnchorRequest withSource(Source source) { setSource(source); return this; } /** ** The tags to attach to the trust anchor. *
* * @return The tags to attach to the trust anchor. */ public java.util.List* The tags to attach to the trust anchor. *
* * @param tags * The tags to attach to the trust anchor. */ public void setTags(java.util.Collection* The tags to attach to the trust anchor. *
** 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 to attach to the trust anchor. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTrustAnchorRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* The tags to attach to the trust anchor. *
* * @param tags * The tags to attach to the trust anchor. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTrustAnchorRequest withTags(java.util.Collection