AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateChannelRequest.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/CloudTrailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/cloudtrail/model/Destination.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CloudTrail
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CLOUDTRAIL_API UpdateChannelRequest();
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 "UpdateChannel"; }
33
34 AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetChannel() const{ return m_channel; }
44 inline bool ChannelHasBeenSet() const { return m_channelHasBeenSet; }
45 inline void SetChannel(const Aws::String& value) { m_channelHasBeenSet = true; m_channel = value; }
46 inline void SetChannel(Aws::String&& value) { m_channelHasBeenSet = true; m_channel = std::move(value); }
47 inline void SetChannel(const char* value) { m_channelHasBeenSet = true; m_channel.assign(value); }
48 inline UpdateChannelRequest& WithChannel(const Aws::String& value) { SetChannel(value); return *this;}
49 inline UpdateChannelRequest& WithChannel(Aws::String&& value) { SetChannel(std::move(value)); return *this;}
50 inline UpdateChannelRequest& WithChannel(const char* value) { SetChannel(value); return *this;}
52
54
58 inline const Aws::Vector<Destination>& GetDestinations() const{ return m_destinations; }
59 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
60 inline void SetDestinations(const Aws::Vector<Destination>& value) { m_destinationsHasBeenSet = true; m_destinations = value; }
61 inline void SetDestinations(Aws::Vector<Destination>&& value) { m_destinationsHasBeenSet = true; m_destinations = std::move(value); }
63 inline UpdateChannelRequest& WithDestinations(Aws::Vector<Destination>&& value) { SetDestinations(std::move(value)); return *this;}
64 inline UpdateChannelRequest& AddDestinations(const Destination& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
65 inline UpdateChannelRequest& AddDestinations(Destination&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(std::move(value)); return *this; }
67
69
72 inline const Aws::String& GetName() const{ return m_name; }
73 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
74 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
75 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
76 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
77 inline UpdateChannelRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
78 inline UpdateChannelRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
79 inline UpdateChannelRequest& WithName(const char* value) { SetName(value); return *this;}
81 private:
82
83 Aws::String m_channel;
84 bool m_channelHasBeenSet = false;
85
86 Aws::Vector<Destination> m_destinations;
87 bool m_destinationsHasBeenSet = false;
88
89 Aws::String m_name;
90 bool m_nameHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace CloudTrail
95} // namespace Aws
UpdateChannelRequest & WithDestinations(Aws::Vector< Destination > &&value)
virtual const char * GetServiceRequestName() const override
void SetDestinations(const Aws::Vector< Destination > &value)
UpdateChannelRequest & WithName(const char *value)
const Aws::Vector< Destination > & GetDestinations() const
UpdateChannelRequest & WithDestinations(const Aws::Vector< Destination > &value)
UpdateChannelRequest & AddDestinations(const Destination &value)
AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override
UpdateChannelRequest & WithName(const Aws::String &value)
UpdateChannelRequest & AddDestinations(Destination &&value)
UpdateChannelRequest & WithChannel(const char *value)
UpdateChannelRequest & WithChannel(const Aws::String &value)
UpdateChannelRequest & WithChannel(Aws::String &&value)
AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetDestinations(Aws::Vector< Destination > &&value)
UpdateChannelRequest & WithName(Aws::String &&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