AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateActivityRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/states/SFNRequest.h>
10#include <aws/states/SFN_EXPORTS.h>
11#include <aws/states/model/EncryptionConfiguration.h>
12#include <aws/states/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SFN {
18namespace Model {
19
23 public:
24 AWS_SFN_API CreateActivityRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateActivity"; }
31
32 AWS_SFN_API Aws::String SerializePayload() const override;
33
35
37
52 inline const Aws::String& GetName() const { return m_name; }
53 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 template <typename NameT = Aws::String>
55 void SetName(NameT&& value) {
56 m_nameHasBeenSet = true;
57 m_name = std::forward<NameT>(value);
58 }
59 template <typename NameT = Aws::String>
61 SetName(std::forward<NameT>(value));
62 return *this;
63 }
65
67
77 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
78 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
79 template <typename TagsT = Aws::Vector<Tag>>
80 void SetTags(TagsT&& value) {
81 m_tagsHasBeenSet = true;
82 m_tags = std::forward<TagsT>(value);
83 }
84 template <typename TagsT = Aws::Vector<Tag>>
86 SetTags(std::forward<TagsT>(value));
87 return *this;
88 }
89 template <typename TagsT = Tag>
91 m_tagsHasBeenSet = true;
92 m_tags.emplace_back(std::forward<TagsT>(value));
93 return *this;
94 }
96
98
101 inline const EncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
102 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
103 template <typename EncryptionConfigurationT = EncryptionConfiguration>
104 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) {
105 m_encryptionConfigurationHasBeenSet = true;
106 m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value);
107 }
108 template <typename EncryptionConfigurationT = EncryptionConfiguration>
109 CreateActivityRequest& WithEncryptionConfiguration(EncryptionConfigurationT&& value) {
110 SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_name;
116
117 Aws::Vector<Tag> m_tags;
118
119 EncryptionConfiguration m_encryptionConfiguration;
120 bool m_nameHasBeenSet = false;
121 bool m_tagsHasBeenSet = false;
122 bool m_encryptionConfigurationHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace SFN
127} // namespace Aws
CreateActivityRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
CreateActivityRequest & AddTags(TagsT &&value)
const Aws::Vector< Tag > & GetTags() const
AWS_SFN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const EncryptionConfiguration & GetEncryptionConfiguration() const
CreateActivityRequest & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
CreateActivityRequest & WithTags(TagsT &&value)
AWS_SFN_API CreateActivityRequest()=default
void SetEncryptionConfiguration(EncryptionConfigurationT &&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