AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateActivityRequest.h
1
6#pragma once
7#include <aws/states/SFN_EXPORTS.h>
8#include <aws/states/SFNRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/states/model/EncryptionConfiguration.h>
12#include <aws/states/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SFN
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SFN_API CreateActivityRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateActivity"; }
34
35 AWS_SFN_API Aws::String SerializePayload() const override;
36
38
39
41
54 inline const Aws::String& GetName() const{ return m_name; }
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
57 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
58 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
59 inline CreateActivityRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
60 inline CreateActivityRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
61 inline CreateActivityRequest& WithName(const char* value) { SetName(value); return *this;}
63
65
75 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
76 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
77 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
78 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
79 inline CreateActivityRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
80 inline CreateActivityRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
81 inline CreateActivityRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
82 inline CreateActivityRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
84
86
89 inline const EncryptionConfiguration& GetEncryptionConfiguration() const{ return m_encryptionConfiguration; }
90 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
91 inline void SetEncryptionConfiguration(const EncryptionConfiguration& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = value; }
92 inline void SetEncryptionConfiguration(EncryptionConfiguration&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::move(value); }
96 private:
97
98 Aws::String m_name;
99 bool m_nameHasBeenSet = false;
100
101 Aws::Vector<Tag> m_tags;
102 bool m_tagsHasBeenSet = false;
103
104 EncryptionConfiguration m_encryptionConfiguration;
105 bool m_encryptionConfigurationHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace SFN
110} // namespace Aws
CreateActivityRequest & WithName(Aws::String &&value)
void SetTags(Aws::Vector< Tag > &&value)
void SetEncryptionConfiguration(const EncryptionConfiguration &value)
CreateActivityRequest & WithName(const Aws::String &value)
CreateActivityRequest & WithTags(const Aws::Vector< Tag > &value)
virtual const char * GetServiceRequestName() const override
void SetName(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
const Aws::Vector< Tag > & GetTags() const
AWS_SFN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const EncryptionConfiguration & GetEncryptionConfiguration() const
void SetEncryptionConfiguration(EncryptionConfiguration &&value)
CreateActivityRequest & WithName(const char *value)
CreateActivityRequest & AddTags(const Tag &value)
CreateActivityRequest & WithEncryptionConfiguration(const EncryptionConfiguration &value)
CreateActivityRequest & WithTags(Aws::Vector< Tag > &&value)
CreateActivityRequest & WithEncryptionConfiguration(EncryptionConfiguration &&value)
CreateActivityRequest & AddTags(Tag &&value)
AWS_SFN_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector