AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateChannelRequest.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/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CloudTrail {
17namespace Model {
18
22 public:
23 AWS_CLOUDTRAIL_API UpdateChannelRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateChannel"; }
30
31 AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetChannel() const { return m_channel; }
40 inline bool ChannelHasBeenSet() const { return m_channelHasBeenSet; }
41 template <typename ChannelT = Aws::String>
42 void SetChannel(ChannelT&& value) {
43 m_channelHasBeenSet = true;
44 m_channel = std::forward<ChannelT>(value);
45 }
46 template <typename ChannelT = Aws::String>
47 UpdateChannelRequest& WithChannel(ChannelT&& value) {
48 SetChannel(std::forward<ChannelT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::Vector<Destination>& GetDestinations() const { return m_destinations; }
59 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
60 template <typename DestinationsT = Aws::Vector<Destination>>
61 void SetDestinations(DestinationsT&& value) {
62 m_destinationsHasBeenSet = true;
63 m_destinations = std::forward<DestinationsT>(value);
64 }
65 template <typename DestinationsT = Aws::Vector<Destination>>
66 UpdateChannelRequest& WithDestinations(DestinationsT&& value) {
67 SetDestinations(std::forward<DestinationsT>(value));
68 return *this;
69 }
70 template <typename DestinationsT = Destination>
71 UpdateChannelRequest& AddDestinations(DestinationsT&& value) {
72 m_destinationsHasBeenSet = true;
73 m_destinations.emplace_back(std::forward<DestinationsT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetName() const { return m_name; }
83 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
84 template <typename NameT = Aws::String>
85 void SetName(NameT&& value) {
86 m_nameHasBeenSet = true;
87 m_name = std::forward<NameT>(value);
88 }
89 template <typename NameT = Aws::String>
91 SetName(std::forward<NameT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_channel;
97
98 Aws::Vector<Destination> m_destinations;
99
100 Aws::String m_name;
101 bool m_channelHasBeenSet = false;
102 bool m_destinationsHasBeenSet = false;
103 bool m_nameHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace CloudTrail
108} // namespace Aws
UpdateChannelRequest & WithDestinations(DestinationsT &&value)
AWS_CLOUDTRAIL_API UpdateChannelRequest()=default
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Destination > & GetDestinations() const
UpdateChannelRequest & WithChannel(ChannelT &&value)
AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override
UpdateChannelRequest & WithName(NameT &&value)
AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateChannelRequest & AddDestinations(DestinationsT &&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