AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template<typename NameT = Aws::String>
59 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
60 template<typename NameT = Aws::String>
61 CreateActivityRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(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 template<typename TagsT = Aws::Vector<Tag>>
78 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
79 template<typename TagsT = Aws::Vector<Tag>>
80 CreateActivityRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
81 template<typename TagsT = Tag>
82 CreateActivityRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
84
86
89 inline const EncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
90 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
91 template<typename EncryptionConfigurationT = EncryptionConfiguration>
92 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value); }
93 template<typename EncryptionConfigurationT = EncryptionConfiguration>
94 CreateActivityRequest& WithEncryptionConfiguration(EncryptionConfigurationT&& value) { SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value)); return *this;}
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(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