AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateChannelRequest.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 <aws/cloudtrail/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CloudTrail
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CLOUDTRAIL_API CreateChannelRequest();
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 "CreateChannel"; }
34
35 AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetName() const{ return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
47 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
48 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
49 inline CreateChannelRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
50 inline CreateChannelRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
51 inline CreateChannelRequest& WithName(const char* value) { SetName(value); return *this;}
53
55
64 inline const Aws::String& GetSource() const{ return m_source; }
65 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
66 inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
67 inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
68 inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
69 inline CreateChannelRequest& WithSource(const Aws::String& value) { SetSource(value); return *this;}
70 inline CreateChannelRequest& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
71 inline CreateChannelRequest& WithSource(const char* value) { SetSource(value); return *this;}
73
75
79 inline const Aws::Vector<Destination>& GetDestinations() const{ return m_destinations; }
80 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
81 inline void SetDestinations(const Aws::Vector<Destination>& value) { m_destinationsHasBeenSet = true; m_destinations = value; }
82 inline void SetDestinations(Aws::Vector<Destination>&& value) { m_destinationsHasBeenSet = true; m_destinations = std::move(value); }
84 inline CreateChannelRequest& WithDestinations(Aws::Vector<Destination>&& value) { SetDestinations(std::move(value)); return *this;}
85 inline CreateChannelRequest& AddDestinations(const Destination& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
86 inline CreateChannelRequest& AddDestinations(Destination&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(std::move(value)); return *this; }
88
90
91 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
92 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
93 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
94 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
95 inline CreateChannelRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
96 inline CreateChannelRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
97 inline CreateChannelRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
98 inline CreateChannelRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
100 private:
101
102 Aws::String m_name;
103 bool m_nameHasBeenSet = false;
104
105 Aws::String m_source;
106 bool m_sourceHasBeenSet = false;
107
108 Aws::Vector<Destination> m_destinations;
109 bool m_destinationsHasBeenSet = false;
110
111 Aws::Vector<Tag> m_tags;
112 bool m_tagsHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace CloudTrail
117} // namespace Aws
CreateChannelRequest & WithName(Aws::String &&value)
void SetDestinations(const Aws::Vector< Destination > &value)
CreateChannelRequest & WithTags(Aws::Vector< Tag > &&value)
CreateChannelRequest & WithName(const char *value)
const Aws::Vector< Destination > & GetDestinations() const
CreateChannelRequest & AddTags(Tag &&value)
virtual const char * GetServiceRequestName() const override
void SetDestinations(Aws::Vector< Destination > &&value)
AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override
AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateChannelRequest & WithSource(const Aws::String &value)
CreateChannelRequest & WithSource(const char *value)
CreateChannelRequest & AddTags(const Tag &value)
CreateChannelRequest & WithName(const Aws::String &value)
CreateChannelRequest & AddDestinations(Destination &&value)
CreateChannelRequest & AddDestinations(const Destination &value)
CreateChannelRequest & WithTags(const Aws::Vector< Tag > &value)
CreateChannelRequest & WithSource(Aws::String &&value)
CreateChannelRequest & WithDestinations(Aws::Vector< Destination > &&value)
CreateChannelRequest & WithDestinations(const Aws::Vector< Destination > &value)
void SetTags(const Aws::Vector< Tag > &value)
const Aws::Vector< Tag > & GetTags() const
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