AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateChannelRequest.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrailRequest.h>
8#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
9#include <aws/cloudtrail/model/Destination.h>
10#include <aws/cloudtrail/model/Tag.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace CloudTrail {
18namespace Model {
19
23 public:
24 AWS_CLOUDTRAIL_API CreateChannelRequest() = 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 "CreateChannel"; }
31
32 AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
64 inline const Aws::String& GetSource() const { return m_source; }
65 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
66 template <typename SourceT = Aws::String>
67 void SetSource(SourceT&& value) {
68 m_sourceHasBeenSet = true;
69 m_source = std::forward<SourceT>(value);
70 }
71 template <typename SourceT = Aws::String>
72 CreateChannelRequest& WithSource(SourceT&& value) {
73 SetSource(std::forward<SourceT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::Vector<Destination>& GetDestinations() const { return m_destinations; }
84 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
85 template <typename DestinationsT = Aws::Vector<Destination>>
86 void SetDestinations(DestinationsT&& value) {
87 m_destinationsHasBeenSet = true;
88 m_destinations = std::forward<DestinationsT>(value);
89 }
90 template <typename DestinationsT = Aws::Vector<Destination>>
91 CreateChannelRequest& WithDestinations(DestinationsT&& value) {
92 SetDestinations(std::forward<DestinationsT>(value));
93 return *this;
94 }
95 template <typename DestinationsT = Destination>
96 CreateChannelRequest& AddDestinations(DestinationsT&& value) {
97 m_destinationsHasBeenSet = true;
98 m_destinations.emplace_back(std::forward<DestinationsT>(value));
99 return *this;
100 }
102
104
105 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
106 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
107 template <typename TagsT = Aws::Vector<Tag>>
108 void SetTags(TagsT&& value) {
109 m_tagsHasBeenSet = true;
110 m_tags = std::forward<TagsT>(value);
111 }
112 template <typename TagsT = Aws::Vector<Tag>>
114 SetTags(std::forward<TagsT>(value));
115 return *this;
116 }
117 template <typename TagsT = Tag>
119 m_tagsHasBeenSet = true;
120 m_tags.emplace_back(std::forward<TagsT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_name;
126
127 Aws::String m_source;
128
129 Aws::Vector<Destination> m_destinations;
130
131 Aws::Vector<Tag> m_tags;
132 bool m_nameHasBeenSet = false;
133 bool m_sourceHasBeenSet = false;
134 bool m_destinationsHasBeenSet = false;
135 bool m_tagsHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace CloudTrail
140} // namespace Aws
CreateChannelRequest & AddDestinations(DestinationsT &&value)
AWS_CLOUDTRAIL_API CreateChannelRequest()=default
const Aws::Vector< Destination > & GetDestinations() const
virtual const char * GetServiceRequestName() const override
AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override
AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateChannelRequest & WithSource(SourceT &&value)
CreateChannelRequest & WithName(NameT &&value)
CreateChannelRequest & WithDestinations(DestinationsT &&value)
CreateChannelRequest & WithTags(TagsT &&value)
const Aws::Vector< Tag > & GetTags() const
CreateChannelRequest & AddTags(TagsT &&value)
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