268 lines
15 KiB
C++
268 lines
15 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/states/SFN_EXPORTS.h>
|
|
#include <aws/states/SFNRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/states/model/Tag.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace SFN
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_SFN_API CreateActivityRequest : public SFNRequest
|
|
{
|
|
public:
|
|
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::String SerializePayload() const override;
|
|
|
|
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
|
|
|
|
|
/**
|
|
* <p>The name of the activity to create. This name must be unique for your AWS
|
|
* account and region for 90 days. For more information, see <a
|
|
* href="https://docs.aws.amazon.com/step-functions/latest/dg/limits.html#service-limits-state-machine-executions">
|
|
* Limits Related to State Machine Executions</a> in the <i>AWS Step Functions
|
|
* Developer Guide</i>.</p> <p>A name must <i>not</i> contain:</p> <ul> <li>
|
|
* <p>white space</p> </li> <li> <p>brackets <code>< > { } [ ]</code> </p>
|
|
* </li> <li> <p>wildcard characters <code>? *</code> </p> </li> <li> <p>special
|
|
* characters <code>" # % \ ^ | ~ ` $ & , ; : /</code> </p> </li> <li>
|
|
* <p>control characters (<code>U+0000-001F</code>, <code>U+007F-009F</code>)</p>
|
|
* </li> </ul> <p>To enable logging with CloudWatch Logs, the name should only
|
|
* contain 0-9, A-Z, a-z, - and _.</p>
|
|
*/
|
|
inline const Aws::String& GetName() const{ return m_name; }
|
|
|
|
/**
|
|
* <p>The name of the activity to create. This name must be unique for your AWS
|
|
* account and region for 90 days. For more information, see <a
|
|
* href="https://docs.aws.amazon.com/step-functions/latest/dg/limits.html#service-limits-state-machine-executions">
|
|
* Limits Related to State Machine Executions</a> in the <i>AWS Step Functions
|
|
* Developer Guide</i>.</p> <p>A name must <i>not</i> contain:</p> <ul> <li>
|
|
* <p>white space</p> </li> <li> <p>brackets <code>< > { } [ ]</code> </p>
|
|
* </li> <li> <p>wildcard characters <code>? *</code> </p> </li> <li> <p>special
|
|
* characters <code>" # % \ ^ | ~ ` $ & , ; : /</code> </p> </li> <li>
|
|
* <p>control characters (<code>U+0000-001F</code>, <code>U+007F-009F</code>)</p>
|
|
* </li> </ul> <p>To enable logging with CloudWatch Logs, the name should only
|
|
* contain 0-9, A-Z, a-z, - and _.</p>
|
|
*/
|
|
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of the activity to create. This name must be unique for your AWS
|
|
* account and region for 90 days. For more information, see <a
|
|
* href="https://docs.aws.amazon.com/step-functions/latest/dg/limits.html#service-limits-state-machine-executions">
|
|
* Limits Related to State Machine Executions</a> in the <i>AWS Step Functions
|
|
* Developer Guide</i>.</p> <p>A name must <i>not</i> contain:</p> <ul> <li>
|
|
* <p>white space</p> </li> <li> <p>brackets <code>< > { } [ ]</code> </p>
|
|
* </li> <li> <p>wildcard characters <code>? *</code> </p> </li> <li> <p>special
|
|
* characters <code>" # % \ ^ | ~ ` $ & , ; : /</code> </p> </li> <li>
|
|
* <p>control characters (<code>U+0000-001F</code>, <code>U+007F-009F</code>)</p>
|
|
* </li> </ul> <p>To enable logging with CloudWatch Logs, the name should only
|
|
* contain 0-9, A-Z, a-z, - and _.</p>
|
|
*/
|
|
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
|
|
|
|
/**
|
|
* <p>The name of the activity to create. This name must be unique for your AWS
|
|
* account and region for 90 days. For more information, see <a
|
|
* href="https://docs.aws.amazon.com/step-functions/latest/dg/limits.html#service-limits-state-machine-executions">
|
|
* Limits Related to State Machine Executions</a> in the <i>AWS Step Functions
|
|
* Developer Guide</i>.</p> <p>A name must <i>not</i> contain:</p> <ul> <li>
|
|
* <p>white space</p> </li> <li> <p>brackets <code>< > { } [ ]</code> </p>
|
|
* </li> <li> <p>wildcard characters <code>? *</code> </p> </li> <li> <p>special
|
|
* characters <code>" # % \ ^ | ~ ` $ & , ; : /</code> </p> </li> <li>
|
|
* <p>control characters (<code>U+0000-001F</code>, <code>U+007F-009F</code>)</p>
|
|
* </li> </ul> <p>To enable logging with CloudWatch Logs, the name should only
|
|
* contain 0-9, A-Z, a-z, - and _.</p>
|
|
*/
|
|
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the activity to create. This name must be unique for your AWS
|
|
* account and region for 90 days. For more information, see <a
|
|
* href="https://docs.aws.amazon.com/step-functions/latest/dg/limits.html#service-limits-state-machine-executions">
|
|
* Limits Related to State Machine Executions</a> in the <i>AWS Step Functions
|
|
* Developer Guide</i>.</p> <p>A name must <i>not</i> contain:</p> <ul> <li>
|
|
* <p>white space</p> </li> <li> <p>brackets <code>< > { } [ ]</code> </p>
|
|
* </li> <li> <p>wildcard characters <code>? *</code> </p> </li> <li> <p>special
|
|
* characters <code>" # % \ ^ | ~ ` $ & , ; : /</code> </p> </li> <li>
|
|
* <p>control characters (<code>U+0000-001F</code>, <code>U+007F-009F</code>)</p>
|
|
* </li> </ul> <p>To enable logging with CloudWatch Logs, the name should only
|
|
* contain 0-9, A-Z, a-z, - and _.</p>
|
|
*/
|
|
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the activity to create. This name must be unique for your AWS
|
|
* account and region for 90 days. For more information, see <a
|
|
* href="https://docs.aws.amazon.com/step-functions/latest/dg/limits.html#service-limits-state-machine-executions">
|
|
* Limits Related to State Machine Executions</a> in the <i>AWS Step Functions
|
|
* Developer Guide</i>.</p> <p>A name must <i>not</i> contain:</p> <ul> <li>
|
|
* <p>white space</p> </li> <li> <p>brackets <code>< > { } [ ]</code> </p>
|
|
* </li> <li> <p>wildcard characters <code>? *</code> </p> </li> <li> <p>special
|
|
* characters <code>" # % \ ^ | ~ ` $ & , ; : /</code> </p> </li> <li>
|
|
* <p>control characters (<code>U+0000-001F</code>, <code>U+007F-009F</code>)</p>
|
|
* </li> </ul> <p>To enable logging with CloudWatch Logs, the name should only
|
|
* contain 0-9, A-Z, a-z, - and _.</p>
|
|
*/
|
|
inline CreateActivityRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the activity to create. This name must be unique for your AWS
|
|
* account and region for 90 days. For more information, see <a
|
|
* href="https://docs.aws.amazon.com/step-functions/latest/dg/limits.html#service-limits-state-machine-executions">
|
|
* Limits Related to State Machine Executions</a> in the <i>AWS Step Functions
|
|
* Developer Guide</i>.</p> <p>A name must <i>not</i> contain:</p> <ul> <li>
|
|
* <p>white space</p> </li> <li> <p>brackets <code>< > { } [ ]</code> </p>
|
|
* </li> <li> <p>wildcard characters <code>? *</code> </p> </li> <li> <p>special
|
|
* characters <code>" # % \ ^ | ~ ` $ & , ; : /</code> </p> </li> <li>
|
|
* <p>control characters (<code>U+0000-001F</code>, <code>U+007F-009F</code>)</p>
|
|
* </li> </ul> <p>To enable logging with CloudWatch Logs, the name should only
|
|
* contain 0-9, A-Z, a-z, - and _.</p>
|
|
*/
|
|
inline CreateActivityRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the activity to create. This name must be unique for your AWS
|
|
* account and region for 90 days. For more information, see <a
|
|
* href="https://docs.aws.amazon.com/step-functions/latest/dg/limits.html#service-limits-state-machine-executions">
|
|
* Limits Related to State Machine Executions</a> in the <i>AWS Step Functions
|
|
* Developer Guide</i>.</p> <p>A name must <i>not</i> contain:</p> <ul> <li>
|
|
* <p>white space</p> </li> <li> <p>brackets <code>< > { } [ ]</code> </p>
|
|
* </li> <li> <p>wildcard characters <code>? *</code> </p> </li> <li> <p>special
|
|
* characters <code>" # % \ ^ | ~ ` $ & , ; : /</code> </p> </li> <li>
|
|
* <p>control characters (<code>U+0000-001F</code>, <code>U+007F-009F</code>)</p>
|
|
* </li> </ul> <p>To enable logging with CloudWatch Logs, the name should only
|
|
* contain 0-9, A-Z, a-z, - and _.</p>
|
|
*/
|
|
inline CreateActivityRequest& WithName(const char* value) { SetName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The list of tags to add to a resource.</p> <p>An array of key-value pairs.
|
|
* For more information, see <a
|
|
* href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html">Using
|
|
* Cost Allocation Tags</a> in the <i>AWS Billing and Cost Management User
|
|
* Guide</i>, and <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html">Controlling
|
|
* Access Using IAM Tags</a>.</p> <p>Tags may only contain Unicode letters, digits,
|
|
* white space, or these symbols: <code>_ . : / = + - @</code>.</p>
|
|
*/
|
|
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
|
|
|
|
/**
|
|
* <p>The list of tags to add to a resource.</p> <p>An array of key-value pairs.
|
|
* For more information, see <a
|
|
* href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html">Using
|
|
* Cost Allocation Tags</a> in the <i>AWS Billing and Cost Management User
|
|
* Guide</i>, and <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html">Controlling
|
|
* Access Using IAM Tags</a>.</p> <p>Tags may only contain Unicode letters, digits,
|
|
* white space, or these symbols: <code>_ . : / = + - @</code>.</p>
|
|
*/
|
|
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The list of tags to add to a resource.</p> <p>An array of key-value pairs.
|
|
* For more information, see <a
|
|
* href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html">Using
|
|
* Cost Allocation Tags</a> in the <i>AWS Billing and Cost Management User
|
|
* Guide</i>, and <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html">Controlling
|
|
* Access Using IAM Tags</a>.</p> <p>Tags may only contain Unicode letters, digits,
|
|
* white space, or these symbols: <code>_ . : / = + - @</code>.</p>
|
|
*/
|
|
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
|
|
|
|
/**
|
|
* <p>The list of tags to add to a resource.</p> <p>An array of key-value pairs.
|
|
* For more information, see <a
|
|
* href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html">Using
|
|
* Cost Allocation Tags</a> in the <i>AWS Billing and Cost Management User
|
|
* Guide</i>, and <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html">Controlling
|
|
* Access Using IAM Tags</a>.</p> <p>Tags may only contain Unicode letters, digits,
|
|
* white space, or these symbols: <code>_ . : / = + - @</code>.</p>
|
|
*/
|
|
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
|
|
|
|
/**
|
|
* <p>The list of tags to add to a resource.</p> <p>An array of key-value pairs.
|
|
* For more information, see <a
|
|
* href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html">Using
|
|
* Cost Allocation Tags</a> in the <i>AWS Billing and Cost Management User
|
|
* Guide</i>, and <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html">Controlling
|
|
* Access Using IAM Tags</a>.</p> <p>Tags may only contain Unicode letters, digits,
|
|
* white space, or these symbols: <code>_ . : / = + - @</code>.</p>
|
|
*/
|
|
inline CreateActivityRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
|
|
|
|
/**
|
|
* <p>The list of tags to add to a resource.</p> <p>An array of key-value pairs.
|
|
* For more information, see <a
|
|
* href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html">Using
|
|
* Cost Allocation Tags</a> in the <i>AWS Billing and Cost Management User
|
|
* Guide</i>, and <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html">Controlling
|
|
* Access Using IAM Tags</a>.</p> <p>Tags may only contain Unicode letters, digits,
|
|
* white space, or these symbols: <code>_ . : / = + - @</code>.</p>
|
|
*/
|
|
inline CreateActivityRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The list of tags to add to a resource.</p> <p>An array of key-value pairs.
|
|
* For more information, see <a
|
|
* href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html">Using
|
|
* Cost Allocation Tags</a> in the <i>AWS Billing and Cost Management User
|
|
* Guide</i>, and <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html">Controlling
|
|
* Access Using IAM Tags</a>.</p> <p>Tags may only contain Unicode letters, digits,
|
|
* white space, or these symbols: <code>_ . : / = + - @</code>.</p>
|
|
*/
|
|
inline CreateActivityRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>The list of tags to add to a resource.</p> <p>An array of key-value pairs.
|
|
* For more information, see <a
|
|
* href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html">Using
|
|
* Cost Allocation Tags</a> in the <i>AWS Billing and Cost Management User
|
|
* Guide</i>, and <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html">Controlling
|
|
* Access Using IAM Tags</a>.</p> <p>Tags may only contain Unicode letters, digits,
|
|
* white space, or these symbols: <code>_ . : / = + - @</code>.</p>
|
|
*/
|
|
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;
|
|
|
|
Aws::Vector<Tag> m_tags;
|
|
bool m_tagsHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace SFN
|
|
} // namespace Aws
|