AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateChannelResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/cloudtrail/model/Destination.h>
11#include <aws/cloudtrail/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace CloudTrail
27{
28namespace Model
29{
31 {
32 public:
33 AWS_CLOUDTRAIL_API CreateChannelResult() = default;
36
37
39
42 inline const Aws::String& GetChannelArn() const { return m_channelArn; }
43 template<typename ChannelArnT = Aws::String>
44 void SetChannelArn(ChannelArnT&& value) { m_channelArnHasBeenSet = true; m_channelArn = std::forward<ChannelArnT>(value); }
45 template<typename ChannelArnT = Aws::String>
46 CreateChannelResult& WithChannelArn(ChannelArnT&& value) { SetChannelArn(std::forward<ChannelArnT>(value)); return *this;}
48
50
53 inline const Aws::String& GetName() const { return m_name; }
54 template<typename NameT = Aws::String>
55 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
56 template<typename NameT = Aws::String>
57 CreateChannelResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
59
61
64 inline const Aws::String& GetSource() const { return m_source; }
65 template<typename SourceT = Aws::String>
66 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
67 template<typename SourceT = Aws::String>
68 CreateChannelResult& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
70
72
75 inline const Aws::Vector<Destination>& GetDestinations() const { return m_destinations; }
76 template<typename DestinationsT = Aws::Vector<Destination>>
77 void SetDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations = std::forward<DestinationsT>(value); }
78 template<typename DestinationsT = Aws::Vector<Destination>>
79 CreateChannelResult& WithDestinations(DestinationsT&& value) { SetDestinations(std::forward<DestinationsT>(value)); return *this;}
80 template<typename DestinationsT = Destination>
81 CreateChannelResult& AddDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations.emplace_back(std::forward<DestinationsT>(value)); return *this; }
83
85
86 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
87 template<typename TagsT = Aws::Vector<Tag>>
88 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
89 template<typename TagsT = Aws::Vector<Tag>>
90 CreateChannelResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
91 template<typename TagsT = Tag>
92 CreateChannelResult& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
94
96
97 inline const Aws::String& GetRequestId() const { return m_requestId; }
98 template<typename RequestIdT = Aws::String>
99 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
100 template<typename RequestIdT = Aws::String>
101 CreateChannelResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
103 private:
104
105 Aws::String m_channelArn;
106 bool m_channelArnHasBeenSet = false;
107
108 Aws::String m_name;
109 bool m_nameHasBeenSet = false;
110
111 Aws::String m_source;
112 bool m_sourceHasBeenSet = false;
113
114 Aws::Vector<Destination> m_destinations;
115 bool m_destinationsHasBeenSet = false;
116
117 Aws::Vector<Tag> m_tags;
118 bool m_tagsHasBeenSet = false;
119
120 Aws::String m_requestId;
121 bool m_requestIdHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace CloudTrail
126} // namespace Aws
AWS_CLOUDTRAIL_API CreateChannelResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< Tag > & GetTags() const
CreateChannelResult & WithChannelArn(ChannelArnT &&value)
CreateChannelResult & AddTags(TagsT &&value)
CreateChannelResult & WithName(NameT &&value)
CreateChannelResult & WithTags(TagsT &&value)
AWS_CLOUDTRAIL_API CreateChannelResult()=default
CreateChannelResult & WithDestinations(DestinationsT &&value)
CreateChannelResult & WithSource(SourceT &&value)
CreateChannelResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< Destination > & GetDestinations() const
CreateChannelResult & AddDestinations(DestinationsT &&value)
AWS_CLOUDTRAIL_API CreateChannelResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue