/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace SSM { namespace Model { /** */ class AWS_SSM_API CreateActivationRequest : public SSMRequest { public: CreateActivationRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateActivation"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A user-defined description of the resource that you want to register with * Systems Manager.

Do not enter personally identifiable * information in this field.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A user-defined description of the resource that you want to register with * Systems Manager.

Do not enter personally identifiable * information in this field.

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

A user-defined description of the resource that you want to register with * Systems Manager.

Do not enter personally identifiable * information in this field.

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

A user-defined description of the resource that you want to register with * Systems Manager.

Do not enter personally identifiable * information in this field.

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

A user-defined description of the resource that you want to register with * Systems Manager.

Do not enter personally identifiable * information in this field.

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

A user-defined description of the resource that you want to register with * Systems Manager.

Do not enter personally identifiable * information in this field.

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

A user-defined description of the resource that you want to register with * Systems Manager.

Do not enter personally identifiable * information in this field.

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

A user-defined description of the resource that you want to register with * Systems Manager.

Do not enter personally identifiable * information in this field.

*/ inline CreateActivationRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The name of the registered, managed instance as it will appear in the Systems * Manager console or when you use the AWS command line tools to list Systems * Manager resources.

Do not enter personally identifiable * information in this field.

*/ inline const Aws::String& GetDefaultInstanceName() const{ return m_defaultInstanceName; } /** *

The name of the registered, managed instance as it will appear in the Systems * Manager console or when you use the AWS command line tools to list Systems * Manager resources.

Do not enter personally identifiable * information in this field.

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

The name of the registered, managed instance as it will appear in the Systems * Manager console or when you use the AWS command line tools to list Systems * Manager resources.

Do not enter personally identifiable * information in this field.

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

The name of the registered, managed instance as it will appear in the Systems * Manager console or when you use the AWS command line tools to list Systems * Manager resources.

Do not enter personally identifiable * information in this field.

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

The name of the registered, managed instance as it will appear in the Systems * Manager console or when you use the AWS command line tools to list Systems * Manager resources.

Do not enter personally identifiable * information in this field.

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

The name of the registered, managed instance as it will appear in the Systems * Manager console or when you use the AWS command line tools to list Systems * Manager resources.

Do not enter personally identifiable * information in this field.

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

The name of the registered, managed instance as it will appear in the Systems * Manager console or when you use the AWS command line tools to list Systems * Manager resources.

Do not enter personally identifiable * information in this field.

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

The name of the registered, managed instance as it will appear in the Systems * Manager console or when you use the AWS command line tools to list Systems * Manager resources.

Do not enter personally identifiable * information in this field.

*/ inline CreateActivationRequest& WithDefaultInstanceName(const char* value) { SetDefaultInstanceName(value); return *this;} /** *

The Amazon Identity and Access Management (IAM) role that you want to assign * to the managed instance. This IAM role must provide AssumeRole permissions for * the Systems Manager service principal ssm.amazonaws.com. For more * information, see Create * an IAM service role for a hybrid environment in the AWS Systems Manager * User Guide.

*/ inline const Aws::String& GetIamRole() const{ return m_iamRole; } /** *

The Amazon Identity and Access Management (IAM) role that you want to assign * to the managed instance. This IAM role must provide AssumeRole permissions for * the Systems Manager service principal ssm.amazonaws.com. For more * information, see Create * an IAM service role for a hybrid environment in the AWS Systems Manager * User Guide.

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

The Amazon Identity and Access Management (IAM) role that you want to assign * to the managed instance. This IAM role must provide AssumeRole permissions for * the Systems Manager service principal ssm.amazonaws.com. For more * information, see Create * an IAM service role for a hybrid environment in the AWS Systems Manager * User Guide.

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

The Amazon Identity and Access Management (IAM) role that you want to assign * to the managed instance. This IAM role must provide AssumeRole permissions for * the Systems Manager service principal ssm.amazonaws.com. For more * information, see Create * an IAM service role for a hybrid environment in the AWS Systems Manager * User Guide.

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

The Amazon Identity and Access Management (IAM) role that you want to assign * to the managed instance. This IAM role must provide AssumeRole permissions for * the Systems Manager service principal ssm.amazonaws.com. For more * information, see Create * an IAM service role for a hybrid environment in the AWS Systems Manager * User Guide.

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

The Amazon Identity and Access Management (IAM) role that you want to assign * to the managed instance. This IAM role must provide AssumeRole permissions for * the Systems Manager service principal ssm.amazonaws.com. For more * information, see Create * an IAM service role for a hybrid environment in the AWS Systems Manager * User Guide.

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

The Amazon Identity and Access Management (IAM) role that you want to assign * to the managed instance. This IAM role must provide AssumeRole permissions for * the Systems Manager service principal ssm.amazonaws.com. For more * information, see Create * an IAM service role for a hybrid environment in the AWS Systems Manager * User Guide.

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

The Amazon Identity and Access Management (IAM) role that you want to assign * to the managed instance. This IAM role must provide AssumeRole permissions for * the Systems Manager service principal ssm.amazonaws.com. For more * information, see Create * an IAM service role for a hybrid environment in the AWS Systems Manager * User Guide.

*/ inline CreateActivationRequest& WithIamRole(const char* value) { SetIamRole(value); return *this;} /** *

Specify the maximum number of managed instances you want to register. The * default value is 1 instance.

*/ inline int GetRegistrationLimit() const{ return m_registrationLimit; } /** *

Specify the maximum number of managed instances you want to register. The * default value is 1 instance.

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

Specify the maximum number of managed instances you want to register. The * default value is 1 instance.

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

Specify the maximum number of managed instances you want to register. The * default value is 1 instance.

*/ inline CreateActivationRequest& WithRegistrationLimit(int value) { SetRegistrationLimit(value); return *this;} /** *

The date by which this activation request should expire. The default value is * 24 hours.

*/ inline const Aws::Utils::DateTime& GetExpirationDate() const{ return m_expirationDate; } /** *

The date by which this activation request should expire. The default value is * 24 hours.

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

The date by which this activation request should expire. The default value is * 24 hours.

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

The date by which this activation request should expire. The default value is * 24 hours.

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

The date by which this activation request should expire. The default value is * 24 hours.

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

The date by which this activation request should expire. The default value is * 24 hours.

*/ inline CreateActivationRequest& WithExpirationDate(Aws::Utils::DateTime&& value) { SetExpirationDate(std::move(value)); return *this;} /** *

Optional metadata that you assign to a resource. Tags enable you to * categorize a resource in different ways, such as by purpose, owner, or * environment. For example, you might want to tag an activation to identify which * servers or virtual machines (VMs) in your on-premises environment you intend to * activate. In this case, you could specify the following key name/value * pairs:

  • Key=OS,Value=Windows

  • * Key=Environment,Value=Production

*

When you install SSM Agent on your on-premises servers and VMs, you specify * an activation ID and code. When you specify the activation ID and code, tags * assigned to the activation are automatically applied to the on-premises servers * or VMs.

You can't add tags to or delete tags from an * existing activation. You can tag your on-premises servers and VMs after they * connect to Systems Manager for the first time and are assigned a managed * instance ID. This means they are listed in the AWS Systems Manager console with * an ID that is prefixed with "mi-". For information about how to add tags to your * managed instances, see AddTagsToResource. For information about how to * remove tags from your managed instances, see RemoveTagsFromResource.

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

Optional metadata that you assign to a resource. Tags enable you to * categorize a resource in different ways, such as by purpose, owner, or * environment. For example, you might want to tag an activation to identify which * servers or virtual machines (VMs) in your on-premises environment you intend to * activate. In this case, you could specify the following key name/value * pairs:

  • Key=OS,Value=Windows

  • * Key=Environment,Value=Production

*

When you install SSM Agent on your on-premises servers and VMs, you specify * an activation ID and code. When you specify the activation ID and code, tags * assigned to the activation are automatically applied to the on-premises servers * or VMs.

You can't add tags to or delete tags from an * existing activation. You can tag your on-premises servers and VMs after they * connect to Systems Manager for the first time and are assigned a managed * instance ID. This means they are listed in the AWS Systems Manager console with * an ID that is prefixed with "mi-". For information about how to add tags to your * managed instances, see AddTagsToResource. For information about how to * remove tags from your managed instances, see RemoveTagsFromResource.

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

Optional metadata that you assign to a resource. Tags enable you to * categorize a resource in different ways, such as by purpose, owner, or * environment. For example, you might want to tag an activation to identify which * servers or virtual machines (VMs) in your on-premises environment you intend to * activate. In this case, you could specify the following key name/value * pairs:

  • Key=OS,Value=Windows

  • * Key=Environment,Value=Production

*

When you install SSM Agent on your on-premises servers and VMs, you specify * an activation ID and code. When you specify the activation ID and code, tags * assigned to the activation are automatically applied to the on-premises servers * or VMs.

You can't add tags to or delete tags from an * existing activation. You can tag your on-premises servers and VMs after they * connect to Systems Manager for the first time and are assigned a managed * instance ID. This means they are listed in the AWS Systems Manager console with * an ID that is prefixed with "mi-". For information about how to add tags to your * managed instances, see AddTagsToResource. For information about how to * remove tags from your managed instances, see RemoveTagsFromResource.

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

Optional metadata that you assign to a resource. Tags enable you to * categorize a resource in different ways, such as by purpose, owner, or * environment. For example, you might want to tag an activation to identify which * servers or virtual machines (VMs) in your on-premises environment you intend to * activate. In this case, you could specify the following key name/value * pairs:

  • Key=OS,Value=Windows

  • * Key=Environment,Value=Production

*

When you install SSM Agent on your on-premises servers and VMs, you specify * an activation ID and code. When you specify the activation ID and code, tags * assigned to the activation are automatically applied to the on-premises servers * or VMs.

You can't add tags to or delete tags from an * existing activation. You can tag your on-premises servers and VMs after they * connect to Systems Manager for the first time and are assigned a managed * instance ID. This means they are listed in the AWS Systems Manager console with * an ID that is prefixed with "mi-". For information about how to add tags to your * managed instances, see AddTagsToResource. For information about how to * remove tags from your managed instances, see RemoveTagsFromResource.

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

Optional metadata that you assign to a resource. Tags enable you to * categorize a resource in different ways, such as by purpose, owner, or * environment. For example, you might want to tag an activation to identify which * servers or virtual machines (VMs) in your on-premises environment you intend to * activate. In this case, you could specify the following key name/value * pairs:

  • Key=OS,Value=Windows

  • * Key=Environment,Value=Production

*

When you install SSM Agent on your on-premises servers and VMs, you specify * an activation ID and code. When you specify the activation ID and code, tags * assigned to the activation are automatically applied to the on-premises servers * or VMs.

You can't add tags to or delete tags from an * existing activation. You can tag your on-premises servers and VMs after they * connect to Systems Manager for the first time and are assigned a managed * instance ID. This means they are listed in the AWS Systems Manager console with * an ID that is prefixed with "mi-". For information about how to add tags to your * managed instances, see AddTagsToResource. For information about how to * remove tags from your managed instances, see RemoveTagsFromResource.

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

Optional metadata that you assign to a resource. Tags enable you to * categorize a resource in different ways, such as by purpose, owner, or * environment. For example, you might want to tag an activation to identify which * servers or virtual machines (VMs) in your on-premises environment you intend to * activate. In this case, you could specify the following key name/value * pairs:

  • Key=OS,Value=Windows

  • * Key=Environment,Value=Production

*

When you install SSM Agent on your on-premises servers and VMs, you specify * an activation ID and code. When you specify the activation ID and code, tags * assigned to the activation are automatically applied to the on-premises servers * or VMs.

You can't add tags to or delete tags from an * existing activation. You can tag your on-premises servers and VMs after they * connect to Systems Manager for the first time and are assigned a managed * instance ID. This means they are listed in the AWS Systems Manager console with * an ID that is prefixed with "mi-". For information about how to add tags to your * managed instances, see AddTagsToResource. For information about how to * remove tags from your managed instances, see RemoveTagsFromResource.

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

Optional metadata that you assign to a resource. Tags enable you to * categorize a resource in different ways, such as by purpose, owner, or * environment. For example, you might want to tag an activation to identify which * servers or virtual machines (VMs) in your on-premises environment you intend to * activate. In this case, you could specify the following key name/value * pairs:

  • Key=OS,Value=Windows

  • * Key=Environment,Value=Production

*

When you install SSM Agent on your on-premises servers and VMs, you specify * an activation ID and code. When you specify the activation ID and code, tags * assigned to the activation are automatically applied to the on-premises servers * or VMs.

You can't add tags to or delete tags from an * existing activation. You can tag your on-premises servers and VMs after they * connect to Systems Manager for the first time and are assigned a managed * instance ID. This means they are listed in the AWS Systems Manager console with * an ID that is prefixed with "mi-". For information about how to add tags to your * managed instances, see AddTagsToResource. For information about how to * remove tags from your managed instances, see RemoveTagsFromResource.

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

Optional metadata that you assign to a resource. Tags enable you to * categorize a resource in different ways, such as by purpose, owner, or * environment. For example, you might want to tag an activation to identify which * servers or virtual machines (VMs) in your on-premises environment you intend to * activate. In this case, you could specify the following key name/value * pairs:

  • Key=OS,Value=Windows

  • * Key=Environment,Value=Production

*

When you install SSM Agent on your on-premises servers and VMs, you specify * an activation ID and code. When you specify the activation ID and code, tags * assigned to the activation are automatically applied to the on-premises servers * or VMs.

You can't add tags to or delete tags from an * existing activation. You can tag your on-premises servers and VMs after they * connect to Systems Manager for the first time and are assigned a managed * instance ID. This means they are listed in the AWS Systems Manager console with * an ID that is prefixed with "mi-". For information about how to add tags to your * managed instances, see AddTagsToResource. For information about how to * remove tags from your managed instances, see RemoveTagsFromResource.

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