AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
CreateSourceNetworkRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/drs/DrsRequest.h>
10#include <aws/drs/Drs_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace drs {
16namespace Model {
17
21 public:
22 AWS_DRS_API CreateSourceNetworkRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateSourceNetwork"; }
29
30 AWS_DRS_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetVpcID() const { return m_vpcID; }
37 inline bool VpcIDHasBeenSet() const { return m_vpcIDHasBeenSet; }
38 template <typename VpcIDT = Aws::String>
39 void SetVpcID(VpcIDT&& value) {
40 m_vpcIDHasBeenSet = true;
41 m_vpcID = std::forward<VpcIDT>(value);
42 }
43 template <typename VpcIDT = Aws::String>
45 SetVpcID(std::forward<VpcIDT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetOriginAccountID() const { return m_originAccountID; }
55 inline bool OriginAccountIDHasBeenSet() const { return m_originAccountIDHasBeenSet; }
56 template <typename OriginAccountIDT = Aws::String>
57 void SetOriginAccountID(OriginAccountIDT&& value) {
58 m_originAccountIDHasBeenSet = true;
59 m_originAccountID = std::forward<OriginAccountIDT>(value);
60 }
61 template <typename OriginAccountIDT = Aws::String>
63 SetOriginAccountID(std::forward<OriginAccountIDT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetOriginRegion() const { return m_originRegion; }
73 inline bool OriginRegionHasBeenSet() const { return m_originRegionHasBeenSet; }
74 template <typename OriginRegionT = Aws::String>
75 void SetOriginRegion(OriginRegionT&& value) {
76 m_originRegionHasBeenSet = true;
77 m_originRegion = std::forward<OriginRegionT>(value);
78 }
79 template <typename OriginRegionT = Aws::String>
81 SetOriginRegion(std::forward<OriginRegionT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
91 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
92 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
93 void SetTags(TagsT&& value) {
94 m_tagsHasBeenSet = true;
95 m_tags = std::forward<TagsT>(value);
96 }
97 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
99 SetTags(std::forward<TagsT>(value));
100 return *this;
101 }
102 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
103 CreateSourceNetworkRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
104 m_tagsHasBeenSet = true;
105 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_vpcID;
111
112 Aws::String m_originAccountID;
113
114 Aws::String m_originRegion;
115
117 bool m_vpcIDHasBeenSet = false;
118 bool m_originAccountIDHasBeenSet = false;
119 bool m_originRegionHasBeenSet = false;
120 bool m_tagsHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace drs
125} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_DRS_API Aws::String SerializePayload() const override
AWS_DRS_API CreateSourceNetworkRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateSourceNetworkRequest & WithVpcID(VpcIDT &&value)
CreateSourceNetworkRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateSourceNetworkRequest & WithTags(TagsT &&value)
CreateSourceNetworkRequest & WithOriginRegion(OriginRegionT &&value)
CreateSourceNetworkRequest & WithOriginAccountID(OriginAccountIDT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String