/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SSM { namespace Model { /** *

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

*/ class Activation { public: AWS_SSM_API Activation(); AWS_SSM_API Activation(Aws::Utils::Json::JsonView jsonValue); AWS_SSM_API Activation& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ID created by Systems Manager when you submitted the activation.

*/ inline const Aws::String& GetActivationId() const{ return m_activationId; } /** *

The ID created by Systems Manager when you submitted the activation.

*/ inline bool ActivationIdHasBeenSet() const { return m_activationIdHasBeenSet; } /** *

The ID created by Systems Manager when you submitted the activation.

*/ inline void SetActivationId(const Aws::String& value) { m_activationIdHasBeenSet = true; m_activationId = value; } /** *

The ID created by Systems Manager when you submitted the activation.

*/ inline void SetActivationId(Aws::String&& value) { m_activationIdHasBeenSet = true; m_activationId = std::move(value); } /** *

The ID created by Systems Manager when you submitted the activation.

*/ inline void SetActivationId(const char* value) { m_activationIdHasBeenSet = true; m_activationId.assign(value); } /** *

The ID created by Systems Manager when you submitted the activation.

*/ inline Activation& WithActivationId(const Aws::String& value) { SetActivationId(value); return *this;} /** *

The ID created by Systems Manager when you submitted the activation.

*/ inline Activation& WithActivationId(Aws::String&& value) { SetActivationId(std::move(value)); return *this;} /** *

The ID created by Systems Manager when you submitted the activation.

*/ 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; } /** *

A user defined description of the activation.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A user defined description of the activation.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A user defined description of the activation.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A user defined description of the activation.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A user defined description of the activation.

*/ inline Activation& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A user defined description of the activation.

*/ inline Activation& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A user defined description of the activation.

*/ 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; } /** *

A name for the managed node when it is created.

*/ inline bool DefaultInstanceNameHasBeenSet() const { return m_defaultInstanceNameHasBeenSet; } /** *

A name for the managed node when it is created.

*/ inline void SetDefaultInstanceName(const Aws::String& value) { m_defaultInstanceNameHasBeenSet = true; m_defaultInstanceName = value; } /** *

A name for the managed node when it is created.

*/ inline void SetDefaultInstanceName(Aws::String&& value) { m_defaultInstanceNameHasBeenSet = true; m_defaultInstanceName = std::move(value); } /** *

A name for the managed node when it is created.

*/ inline void SetDefaultInstanceName(const char* value) { m_defaultInstanceNameHasBeenSet = true; m_defaultInstanceName.assign(value); } /** *

A name for the managed node when it is created.

*/ inline Activation& WithDefaultInstanceName(const Aws::String& value) { SetDefaultInstanceName(value); return *this;} /** *

A name for the managed node when it is created.

*/ inline Activation& WithDefaultInstanceName(Aws::String&& value) { SetDefaultInstanceName(std::move(value)); return *this;} /** *

A name for the managed node when it is created.

*/ 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; } /** *

The Identity and Access Management (IAM) role to assign to the managed * node.

*/ inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; } /** *

The Identity and Access Management (IAM) role to assign to the managed * node.

*/ inline void SetIamRole(const Aws::String& value) { m_iamRoleHasBeenSet = true; m_iamRole = value; } /** *

The Identity and Access Management (IAM) role to assign to the managed * node.

*/ inline void SetIamRole(Aws::String&& value) { m_iamRoleHasBeenSet = true; m_iamRole = std::move(value); } /** *

The Identity and Access Management (IAM) role to assign to the managed * node.

*/ inline void SetIamRole(const char* value) { m_iamRoleHasBeenSet = true; m_iamRole.assign(value); } /** *

The Identity and Access Management (IAM) role to assign to the managed * node.

*/ inline Activation& WithIamRole(const Aws::String& value) { SetIamRole(value); return *this;} /** *

The Identity and Access Management (IAM) role to assign to the managed * node.

*/ inline Activation& WithIamRole(Aws::String&& value) { SetIamRole(std::move(value)); return *this;} /** *

The Identity and Access Management (IAM) role to assign to the managed * node.

*/ 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; } /** *

The maximum number of managed nodes that can be registered using this * activation.

*/ inline bool RegistrationLimitHasBeenSet() const { return m_registrationLimitHasBeenSet; } /** *

The maximum number of managed nodes that can be registered using this * activation.

*/ inline void SetRegistrationLimit(int value) { m_registrationLimitHasBeenSet = true; m_registrationLimit = value; } /** *

The maximum number of managed nodes that can be registered using this * activation.

*/ 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; } /** *

The number of managed nodes already registered with this activation.

*/ inline bool RegistrationsCountHasBeenSet() const { return m_registrationsCountHasBeenSet; } /** *

The number of managed nodes already registered with this activation.

*/ inline void SetRegistrationsCount(int value) { m_registrationsCountHasBeenSet = true; m_registrationsCount = value; } /** *

The number of managed nodes already registered with this activation.

*/ 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; } /** *

The date when this activation can no longer be used to register managed * nodes.

*/ inline bool ExpirationDateHasBeenSet() const { return m_expirationDateHasBeenSet; } /** *

The date when this activation can no longer be used to register managed * nodes.

*/ inline void SetExpirationDate(const Aws::Utils::DateTime& value) { m_expirationDateHasBeenSet = true; m_expirationDate = value; } /** *

The date when this activation can no longer be used to register managed * nodes.

*/ inline void SetExpirationDate(Aws::Utils::DateTime&& value) { m_expirationDateHasBeenSet = true; m_expirationDate = std::move(value); } /** *

The date when this activation can no longer be used to register managed * nodes.

*/ inline Activation& WithExpirationDate(const Aws::Utils::DateTime& value) { SetExpirationDate(value); return *this;} /** *

The date when this activation can no longer be used to register managed * nodes.

*/ 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; } /** *

Whether or not the activation is expired.

*/ inline bool ExpiredHasBeenSet() const { return m_expiredHasBeenSet; } /** *

Whether or not the activation is expired.

*/ inline void SetExpired(bool value) { m_expiredHasBeenSet = true; m_expired = value; } /** *

Whether or not the activation is expired.

*/ 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; } /** *

The date the activation was created.

*/ inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; } /** *

The date the activation was created.

*/ inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; } /** *

The date the activation was created.

*/ inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); } /** *

The date the activation was created.

*/ inline Activation& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;} /** *

The date the activation was created.

*/ inline Activation& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;} /** *

Tags assigned to the activation.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

Tags assigned to the activation.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Tags assigned to the activation.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Tags assigned to the activation.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Tags assigned to the activation.

*/ inline Activation& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

Tags assigned to the activation.

*/ inline Activation& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

Tags assigned to the activation.

*/ inline Activation& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

Tags assigned to the activation.

*/ inline Activation& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_activationId; bool m_activationIdHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_defaultInstanceName; bool m_defaultInstanceNameHasBeenSet = false; Aws::String m_iamRole; bool m_iamRoleHasBeenSet = false; int m_registrationLimit; bool m_registrationLimitHasBeenSet = false; int m_registrationsCount; bool m_registrationsCountHasBeenSet = false; Aws::Utils::DateTime m_expirationDate; bool m_expirationDateHasBeenSet = false; bool m_expired; bool m_expiredHasBeenSet = false; Aws::Utils::DateTime m_createdDate; bool m_createdDateHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws