/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include 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 Also:
AWS API
* Reference
The ID created by Systems Manager when you submitted the activation.
*/ inline const Aws::String& GetActivationId() const{ return m_activationId; } inline bool ActivationIdHasBeenSet() const { return m_activationIdHasBeenSet; } inline void SetActivationId(const Aws::String& value) { m_activationIdHasBeenSet = true; m_activationId = value; } inline void SetActivationId(Aws::String&& value) { m_activationIdHasBeenSet = true; m_activationId = std::move(value); } inline void SetActivationId(const char* value) { m_activationIdHasBeenSet = true; m_activationId.assign(value); } inline Activation& WithActivationId(const Aws::String& value) { SetActivationId(value); return *this;} inline Activation& WithActivationId(Aws::String&& value) { SetActivationId(std::move(value)); return *this;} inline Activation& WithActivationId(const char* value) { SetActivationId(value); return *this;} ///@} ///@{ /** *A user defined description of the activation.
*/ inline const Aws::String& GetDescription() const{ return m_description; } inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } inline Activation& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} inline Activation& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} inline Activation& WithDescription(const char* value) { SetDescription(value); return *this;} ///@} ///@{ /** *A name for the managed node when it is created.
*/ inline const Aws::String& GetDefaultInstanceName() const{ return m_defaultInstanceName; } inline bool DefaultInstanceNameHasBeenSet() const { return m_defaultInstanceNameHasBeenSet; } inline void SetDefaultInstanceName(const Aws::String& value) { m_defaultInstanceNameHasBeenSet = true; m_defaultInstanceName = value; } inline void SetDefaultInstanceName(Aws::String&& value) { m_defaultInstanceNameHasBeenSet = true; m_defaultInstanceName = std::move(value); } inline void SetDefaultInstanceName(const char* value) { m_defaultInstanceNameHasBeenSet = true; m_defaultInstanceName.assign(value); } inline Activation& WithDefaultInstanceName(const Aws::String& value) { SetDefaultInstanceName(value); return *this;} inline Activation& WithDefaultInstanceName(Aws::String&& value) { SetDefaultInstanceName(std::move(value)); return *this;} inline Activation& WithDefaultInstanceName(const char* value) { SetDefaultInstanceName(value); return *this;} ///@} ///@{ /** *The Identity and Access Management (IAM) role to assign to the managed * node.
*/ inline const Aws::String& GetIamRole() const{ return m_iamRole; } inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; } inline void SetIamRole(const Aws::String& value) { m_iamRoleHasBeenSet = true; m_iamRole = value; } inline void SetIamRole(Aws::String&& value) { m_iamRoleHasBeenSet = true; m_iamRole = std::move(value); } inline void SetIamRole(const char* value) { m_iamRoleHasBeenSet = true; m_iamRole.assign(value); } inline Activation& WithIamRole(const Aws::String& value) { SetIamRole(value); return *this;} inline Activation& WithIamRole(Aws::String&& value) { SetIamRole(std::move(value)); return *this;} inline Activation& WithIamRole(const char* value) { SetIamRole(value); return *this;} ///@} ///@{ /** *The maximum number of managed nodes that can be registered using this * activation.
*/ inline int GetRegistrationLimit() const{ return m_registrationLimit; } inline bool RegistrationLimitHasBeenSet() const { return m_registrationLimitHasBeenSet; } inline void SetRegistrationLimit(int value) { m_registrationLimitHasBeenSet = true; m_registrationLimit = value; } inline Activation& WithRegistrationLimit(int value) { SetRegistrationLimit(value); return *this;} ///@} ///@{ /** *The number of managed nodes already registered with this activation.
*/ inline int GetRegistrationsCount() const{ return m_registrationsCount; } inline bool RegistrationsCountHasBeenSet() const { return m_registrationsCountHasBeenSet; } inline void SetRegistrationsCount(int value) { m_registrationsCountHasBeenSet = true; m_registrationsCount = value; } inline Activation& WithRegistrationsCount(int value) { SetRegistrationsCount(value); return *this;} ///@} ///@{ /** *The date when this activation can no longer be used to register managed * nodes.
*/ inline const Aws::Utils::DateTime& GetExpirationDate() const{ return m_expirationDate; } inline bool ExpirationDateHasBeenSet() const { return m_expirationDateHasBeenSet; } inline void SetExpirationDate(const Aws::Utils::DateTime& value) { m_expirationDateHasBeenSet = true; m_expirationDate = value; } inline void SetExpirationDate(Aws::Utils::DateTime&& value) { m_expirationDateHasBeenSet = true; m_expirationDate = std::move(value); } inline Activation& WithExpirationDate(const Aws::Utils::DateTime& value) { SetExpirationDate(value); return *this;} inline Activation& WithExpirationDate(Aws::Utils::DateTime&& value) { SetExpirationDate(std::move(value)); return *this;} ///@} ///@{ /** *Whether or not the activation is expired.
*/ inline bool GetExpired() const{ return m_expired; } inline bool ExpiredHasBeenSet() const { return m_expiredHasBeenSet; } inline void SetExpired(bool value) { m_expiredHasBeenSet = true; m_expired = value; } inline Activation& WithExpired(bool value) { SetExpired(value); return *this;} ///@} ///@{ /** *The date the activation was created.
*/ inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; } inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; } inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; } inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); } inline Activation& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;} inline Activation& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;} ///@} ///@{ /** *Tags assigned to the activation.
*/ inline const Aws::Vector