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

com.amazonaws.services.iamrolesanywhere.model.CreateTrustAnchorRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for IAM Roles Anywhere module holds the client classes that are used for communicating with IAM Roles Anywhere 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.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 notificationSettings; /** *

* The trust anchor type and its related certificate data. *

*/ private Source source; /** *

* The tags to attach to the trust anchor. *

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

* 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 getNotificationSettings() { return notificationSettings; } /** *

* 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 notificationSettings) { if (notificationSettings == null) { this.notificationSettings = null; return; } this.notificationSettings = new java.util.ArrayList(notificationSettings); } /** *

* 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(notificationSettings.length)); } for (NotificationSetting ele : notificationSettings) { this.notificationSettings.add(ele); } return this; } /** *

* 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 notificationSettings) { setNotificationSettings(notificationSettings); return this; } /** *

* 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 getTags() { return tags; } /** *

* The tags to attach to the trust anchor. *

* * @param tags * The tags to attach to the trust anchor. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList(tags); } /** *

* 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(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** *

* 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 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 (getEnabled() != null) sb.append("Enabled: ").append(getEnabled()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getNotificationSettings() != null) sb.append("NotificationSettings: ").append(getNotificationSettings()).append(","); if (getSource() != null) sb.append("Source: ").append(getSource()).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 CreateTrustAnchorRequest == false) return false; CreateTrustAnchorRequest other = (CreateTrustAnchorRequest) obj; if (other.getEnabled() == null ^ this.getEnabled() == null) return false; if (other.getEnabled() != null && other.getEnabled().equals(this.getEnabled()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getNotificationSettings() == null ^ this.getNotificationSettings() == null) return false; if (other.getNotificationSettings() != null && other.getNotificationSettings().equals(this.getNotificationSettings()) == false) return false; if (other.getSource() == null ^ this.getSource() == null) return false; if (other.getSource() != null && other.getSource().equals(this.getSource()) == 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 + ((getEnabled() == null) ? 0 : getEnabled().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getNotificationSettings() == null) ? 0 : getNotificationSettings().hashCode()); hashCode = prime * hashCode + ((getSource() == null) ? 0 : getSource().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @Override public CreateTrustAnchorRequest clone() { return (CreateTrustAnchorRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy