AWS SDK for C++  1.9.104
AWS SDK for C++
CreateActivityRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/states/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace SFN
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateActivity"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
52  inline const Aws::String& GetName() const{ return m_name; }
53 
67  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
68 
82  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
83 
97  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
98 
112  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
113 
127  inline CreateActivityRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
128 
142  inline CreateActivityRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
143 
157  inline CreateActivityRequest& WithName(const char* value) { SetName(value); return *this;}
158 
159 
170  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
171 
182  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
183 
194  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
195 
206  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
207 
218  inline CreateActivityRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
219 
230  inline CreateActivityRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
231 
242  inline CreateActivityRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
243 
254  inline CreateActivityRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
255 
256  private:
257 
258  Aws::String m_name;
259  bool m_nameHasBeenSet;
260 
261  Aws::Vector<Tag> m_tags;
262  bool m_tagsHasBeenSet;
263  };
264 
265 } // namespace Model
266 } // namespace SFN
267 } // namespace Aws
Aws::SFN::Model::CreateActivityRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SFN::Model::CreateActivityRequest::WithTags
CreateActivityRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateActivityRequest.h:230
Aws::SFN::Model::CreateActivityRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateActivityRequest.h:67
Aws::SFN::Model::CreateActivityRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateActivityRequest.h:32
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SFN::Model::CreateActivityRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateActivityRequest.h:82
Aws::SFN::Model::CreateActivityRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateActivityRequest.h:170
Aws::SFN::Model::CreateActivityRequest::WithName
CreateActivityRequest & WithName(Aws::String &&value)
Definition: CreateActivityRequest.h:142
Aws::SFN::Model::CreateActivityRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateActivityRequest.h:194
Aws::SFN::SFNRequest
Definition: SFNRequest.h:17
Tag.h
Aws::SFN::Model::CreateActivityRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateActivityRequest.h:97
Aws::SFN::Model::CreateActivityRequest::AddTags
CreateActivityRequest & AddTags(const Tag &value)
Definition: CreateActivityRequest.h:242
Aws::SFN::Model::CreateActivityRequest::GetName
const Aws::String & GetName() const
Definition: CreateActivityRequest.h:52
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWS_SFN_API
#define AWS_SFN_API
Definition: SFN_EXPORTS.h:28
SFN_EXPORTS.h
AWSVector.h
Aws::SFN::Model::CreateActivityRequest::WithName
CreateActivityRequest & WithName(const char *value)
Definition: CreateActivityRequest.h:157
Aws::SFN::Model::CreateActivityRequest::WithTags
CreateActivityRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateActivityRequest.h:218
Aws::SFN::Model::CreateActivityRequest::WithName
CreateActivityRequest & WithName(const Aws::String &value)
Definition: CreateActivityRequest.h:127
Aws::SFN::Model::CreateActivityRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateActivityRequest.h:182
Aws::SFN::Model::CreateActivityRequest::AddTags
CreateActivityRequest & AddTags(Tag &&value)
Definition: CreateActivityRequest.h:254
Aws::SFN::Model::CreateActivityRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateActivityRequest.h:206
SFNRequest.h
AWSString.h
Aws::SFN::Model::CreateActivityRequest::CreateActivityRequest
CreateActivityRequest()
Aws::SFN::Model::Tag
Definition: Tag.h:41
Aws::SFN::Model::CreateActivityRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SFN::Model::CreateActivityRequest::SetName
void SetName(const char *value)
Definition: CreateActivityRequest.h:112
Aws::SFN::Model::CreateActivityRequest
Definition: CreateActivityRequest.h:24