/** * 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 SFN { namespace Model { /** */ class CreateActivityRequest : public SFNRequest { public: AWS_SFN_API CreateActivityRequest(); // 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 "CreateActivity"; } AWS_SFN_API Aws::String SerializePayload() const override; AWS_SFN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the activity to create. This name must be unique for your Amazon * Web Services account and region for 90 days. For more information, see * Limits Related to State Machine Executions in the Step Functions * Developer Guide.

A name must not contain:

  • *

    white space

  • brackets < > { } [ ]

    *
  • wildcard characters ? *

  • special * characters " # % \ ^ | ~ ` $ & , ; : /

  • *

    control characters (U+0000-001F, U+007F-009F)

    *

To enable logging with CloudWatch Logs, the name should only * contain 0-9, A-Z, a-z, - and _.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the activity to create. This name must be unique for your Amazon * Web Services account and region for 90 days. For more information, see * Limits Related to State Machine Executions in the Step Functions * Developer Guide.

A name must not contain:

  • *

    white space

  • brackets < > { } [ ]

    *
  • wildcard characters ? *

  • special * characters " # % \ ^ | ~ ` $ & , ; : /

  • *

    control characters (U+0000-001F, U+007F-009F)

    *

To enable logging with CloudWatch Logs, the name should only * contain 0-9, A-Z, a-z, - and _.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the activity to create. This name must be unique for your Amazon * Web Services account and region for 90 days. For more information, see * Limits Related to State Machine Executions in the Step Functions * Developer Guide.

A name must not contain:

  • *

    white space

  • brackets < > { } [ ]

    *
  • wildcard characters ? *

  • special * characters " # % \ ^ | ~ ` $ & , ; : /

  • *

    control characters (U+0000-001F, U+007F-009F)

    *

To enable logging with CloudWatch Logs, the name should only * contain 0-9, A-Z, a-z, - and _.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the activity to create. This name must be unique for your Amazon * Web Services account and region for 90 days. For more information, see * Limits Related to State Machine Executions in the Step Functions * Developer Guide.

A name must not contain:

  • *

    white space

  • brackets < > { } [ ]

    *
  • wildcard characters ? *

  • special * characters " # % \ ^ | ~ ` $ & , ; : /

  • *

    control characters (U+0000-001F, U+007F-009F)

    *

To enable logging with CloudWatch Logs, the name should only * contain 0-9, A-Z, a-z, - and _.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the activity to create. This name must be unique for your Amazon * Web Services account and region for 90 days. For more information, see * Limits Related to State Machine Executions in the Step Functions * Developer Guide.

A name must not contain:

  • *

    white space

  • brackets < > { } [ ]

    *
  • wildcard characters ? *

  • special * characters " # % \ ^ | ~ ` $ & , ; : /

  • *

    control characters (U+0000-001F, U+007F-009F)

    *

To enable logging with CloudWatch Logs, the name should only * contain 0-9, A-Z, a-z, - and _.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the activity to create. This name must be unique for your Amazon * Web Services account and region for 90 days. For more information, see * Limits Related to State Machine Executions in the Step Functions * Developer Guide.

A name must not contain:

  • *

    white space

  • brackets < > { } [ ]

    *
  • wildcard characters ? *

  • special * characters " # % \ ^ | ~ ` $ & , ; : /

  • *

    control characters (U+0000-001F, U+007F-009F)

    *

To enable logging with CloudWatch Logs, the name should only * contain 0-9, A-Z, a-z, - and _.

*/ inline CreateActivityRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the activity to create. This name must be unique for your Amazon * Web Services account and region for 90 days. For more information, see * Limits Related to State Machine Executions in the Step Functions * Developer Guide.

A name must not contain:

  • *

    white space

  • brackets < > { } [ ]

    *
  • wildcard characters ? *

  • special * characters " # % \ ^ | ~ ` $ & , ; : /

  • *

    control characters (U+0000-001F, U+007F-009F)

    *

To enable logging with CloudWatch Logs, the name should only * contain 0-9, A-Z, a-z, - and _.

*/ inline CreateActivityRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the activity to create. This name must be unique for your Amazon * Web Services account and region for 90 days. For more information, see * Limits Related to State Machine Executions in the Step Functions * Developer Guide.

A name must not contain:

  • *

    white space

  • brackets < > { } [ ]

    *
  • wildcard characters ? *

  • special * characters " # % \ ^ | ~ ` $ & , ; : /

  • *

    control characters (U+0000-001F, U+007F-009F)

    *

To enable logging with CloudWatch Logs, the name should only * contain 0-9, A-Z, a-z, - and _.

*/ inline CreateActivityRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The list of tags to add to a resource.

An array of key-value pairs. * For more information, see Using * Cost Allocation Tags in the Amazon Web Services Billing and Cost * Management User Guide, and Controlling * Access Using IAM Tags.

Tags may only contain Unicode letters, digits, * white space, or these symbols: _ . : / = + - @.

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

The list of tags to add to a resource.

An array of key-value pairs. * For more information, see Using * Cost Allocation Tags in the Amazon Web Services Billing and Cost * Management User Guide, and Controlling * Access Using IAM Tags.

Tags may only contain Unicode letters, digits, * white space, or these symbols: _ . : / = + - @.

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

The list of tags to add to a resource.

An array of key-value pairs. * For more information, see Using * Cost Allocation Tags in the Amazon Web Services Billing and Cost * Management User Guide, and Controlling * Access Using IAM Tags.

Tags may only contain Unicode letters, digits, * white space, or these symbols: _ . : / = + - @.

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

The list of tags to add to a resource.

An array of key-value pairs. * For more information, see Using * Cost Allocation Tags in the Amazon Web Services Billing and Cost * Management User Guide, and Controlling * Access Using IAM Tags.

Tags may only contain Unicode letters, digits, * white space, or these symbols: _ . : / = + - @.

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

The list of tags to add to a resource.

An array of key-value pairs. * For more information, see Using * Cost Allocation Tags in the Amazon Web Services Billing and Cost * Management User Guide, and Controlling * Access Using IAM Tags.

Tags may only contain Unicode letters, digits, * white space, or these symbols: _ . : / = + - @.

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

The list of tags to add to a resource.

An array of key-value pairs. * For more information, see Using * Cost Allocation Tags in the Amazon Web Services Billing and Cost * Management User Guide, and Controlling * Access Using IAM Tags.

Tags may only contain Unicode letters, digits, * white space, or these symbols: _ . : / = + - @.

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

The list of tags to add to a resource.

An array of key-value pairs. * For more information, see Using * Cost Allocation Tags in the Amazon Web Services Billing and Cost * Management User Guide, and Controlling * Access Using IAM Tags.

Tags may only contain Unicode letters, digits, * white space, or these symbols: _ . : / = + - @.

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

The list of tags to add to a resource.

An array of key-value pairs. * For more information, see Using * Cost Allocation Tags in the Amazon Web Services Billing and Cost * Management User Guide, and Controlling * Access Using IAM Tags.

Tags may only contain Unicode letters, digits, * white space, or these symbols: _ . : / = + - @.

*/ inline CreateActivityRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace SFN } // namespace Aws