/* * 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.simplesystemsmanagement.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* An activation registers one or more on-premises servers or virtual machines (VMs) with Amazon Web Services so that * you can configure those servers or VMs using Run Command. A server or VM that has been registered with Amazon Web * Services Systems Manager is called a managed node. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Activation implements Serializable, Cloneable, StructuredPojo { /** ** The ID created by Systems Manager when you submitted the activation. *
*/ private String activationId; /** ** A user defined description of the activation. *
*/ private String description; /** ** A name for the managed node when it is created. *
*/ private String defaultInstanceName; /** ** The Identity and Access Management (IAM) role to assign to the managed node. *
*/ private String iamRole; /** ** The maximum number of managed nodes that can be registered using this activation. *
*/ private Integer registrationLimit; /** ** The number of managed nodes already registered with this activation. *
*/ private Integer registrationsCount; /** ** The date when this activation can no longer be used to register managed nodes. *
*/ private java.util.Date expirationDate; /** ** Whether or not the activation is expired. *
*/ private Boolean expired; /** ** The date the activation was created. *
*/ private java.util.Date createdDate; /** ** Tags assigned to the activation. *
*/ private com.amazonaws.internal.SdkInternalList* The ID created by Systems Manager when you submitted the activation. *
* * @param activationId * The ID created by Systems Manager when you submitted the activation. */ public void setActivationId(String activationId) { this.activationId = activationId; } /** ** The ID created by Systems Manager when you submitted the activation. *
* * @return The ID created by Systems Manager when you submitted the activation. */ public String getActivationId() { return this.activationId; } /** ** The ID created by Systems Manager when you submitted the activation. *
* * @param activationId * The ID created by Systems Manager when you submitted the activation. * @return Returns a reference to this object so that method calls can be chained together. */ public Activation withActivationId(String activationId) { setActivationId(activationId); return this; } /** ** A user defined description of the activation. *
* * @param description * A user defined description of the activation. */ public void setDescription(String description) { this.description = description; } /** ** A user defined description of the activation. *
* * @return A user defined description of the activation. */ public String getDescription() { return this.description; } /** ** A user defined description of the activation. *
* * @param description * A user defined description of the activation. * @return Returns a reference to this object so that method calls can be chained together. */ public Activation withDescription(String description) { setDescription(description); return this; } /** ** A name for the managed node when it is created. *
* * @param defaultInstanceName * A name for the managed node when it is created. */ public void setDefaultInstanceName(String defaultInstanceName) { this.defaultInstanceName = defaultInstanceName; } /** ** A name for the managed node when it is created. *
* * @return A name for the managed node when it is created. */ public String getDefaultInstanceName() { return this.defaultInstanceName; } /** ** A name for the managed node when it is created. *
* * @param defaultInstanceName * A name for the managed node when it is created. * @return Returns a reference to this object so that method calls can be chained together. */ public Activation withDefaultInstanceName(String defaultInstanceName) { setDefaultInstanceName(defaultInstanceName); return this; } /** ** The Identity and Access Management (IAM) role to assign to the managed node. *
* * @param iamRole * The Identity and Access Management (IAM) role to assign to the managed node. */ public void setIamRole(String iamRole) { this.iamRole = iamRole; } /** ** The Identity and Access Management (IAM) role to assign to the managed node. *
* * @return The Identity and Access Management (IAM) role to assign to the managed node. */ public String getIamRole() { return this.iamRole; } /** ** The Identity and Access Management (IAM) role to assign to the managed node. *
* * @param iamRole * The Identity and Access Management (IAM) role to assign to the managed node. * @return Returns a reference to this object so that method calls can be chained together. */ public Activation withIamRole(String iamRole) { setIamRole(iamRole); return this; } /** ** The maximum number of managed nodes that can be registered using this activation. *
* * @param registrationLimit * The maximum number of managed nodes that can be registered using this activation. */ public void setRegistrationLimit(Integer registrationLimit) { this.registrationLimit = registrationLimit; } /** ** The maximum number of managed nodes that can be registered using this activation. *
* * @return The maximum number of managed nodes that can be registered using this activation. */ public Integer getRegistrationLimit() { return this.registrationLimit; } /** ** The maximum number of managed nodes that can be registered using this activation. *
* * @param registrationLimit * The maximum number of managed nodes that can be registered using this activation. * @return Returns a reference to this object so that method calls can be chained together. */ public Activation withRegistrationLimit(Integer registrationLimit) { setRegistrationLimit(registrationLimit); return this; } /** ** The number of managed nodes already registered with this activation. *
* * @param registrationsCount * The number of managed nodes already registered with this activation. */ public void setRegistrationsCount(Integer registrationsCount) { this.registrationsCount = registrationsCount; } /** ** The number of managed nodes already registered with this activation. *
* * @return The number of managed nodes already registered with this activation. */ public Integer getRegistrationsCount() { return this.registrationsCount; } /** ** The number of managed nodes already registered with this activation. *
* * @param registrationsCount * The number of managed nodes already registered with this activation. * @return Returns a reference to this object so that method calls can be chained together. */ public Activation withRegistrationsCount(Integer registrationsCount) { setRegistrationsCount(registrationsCount); return this; } /** ** The date when this activation can no longer be used to register managed nodes. *
* * @param expirationDate * The date when this activation can no longer be used to register managed nodes. */ public void setExpirationDate(java.util.Date expirationDate) { this.expirationDate = expirationDate; } /** ** The date when this activation can no longer be used to register managed nodes. *
* * @return The date when this activation can no longer be used to register managed nodes. */ public java.util.Date getExpirationDate() { return this.expirationDate; } /** ** The date when this activation can no longer be used to register managed nodes. *
* * @param expirationDate * The date when this activation can no longer be used to register managed nodes. * @return Returns a reference to this object so that method calls can be chained together. */ public Activation withExpirationDate(java.util.Date expirationDate) { setExpirationDate(expirationDate); return this; } /** ** Whether or not the activation is expired. *
* * @param expired * Whether or not the activation is expired. */ public void setExpired(Boolean expired) { this.expired = expired; } /** ** Whether or not the activation is expired. *
* * @return Whether or not the activation is expired. */ public Boolean getExpired() { return this.expired; } /** ** Whether or not the activation is expired. *
* * @param expired * Whether or not the activation is expired. * @return Returns a reference to this object so that method calls can be chained together. */ public Activation withExpired(Boolean expired) { setExpired(expired); return this; } /** ** Whether or not the activation is expired. *
* * @return Whether or not the activation is expired. */ public Boolean isExpired() { return this.expired; } /** ** The date the activation was created. *
* * @param createdDate * The date the activation was created. */ public void setCreatedDate(java.util.Date createdDate) { this.createdDate = createdDate; } /** ** The date the activation was created. *
* * @return The date the activation was created. */ public java.util.Date getCreatedDate() { return this.createdDate; } /** ** The date the activation was created. *
* * @param createdDate * The date the activation was created. * @return Returns a reference to this object so that method calls can be chained together. */ public Activation withCreatedDate(java.util.Date createdDate) { setCreatedDate(createdDate); return this; } /** ** Tags assigned to the activation. *
* * @return Tags assigned to the activation. */ public java.util.List* Tags assigned to the activation. *
* * @param tags * Tags assigned to the activation. */ public void setTags(java.util.Collection* Tags assigned to the activation. *
** 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 * Tags assigned to the activation. * @return Returns a reference to this object so that method calls can be chained together. */ public Activation withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList* Tags assigned to the activation. *
* * @param tags * Tags assigned to the activation. * @return Returns a reference to this object so that method calls can be chained together. */ public Activation withTags(java.util.Collection