AWS SDK for C++

AWS SDK for C++ Version 1.11.742

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& GetOriginAccountID() const { return m_originAccountID; }
37 inline bool OriginAccountIDHasBeenSet() const { return m_originAccountIDHasBeenSet; }
38 template <typename OriginAccountIDT = Aws::String>
39 void SetOriginAccountID(OriginAccountIDT&& value) {
40 m_originAccountIDHasBeenSet = true;
41 m_originAccountID = std::forward<OriginAccountIDT>(value);
42 }
43 template <typename OriginAccountIDT = Aws::String>
45 SetOriginAccountID(std::forward<OriginAccountIDT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetOriginRegion() const { return m_originRegion; }
55 inline bool OriginRegionHasBeenSet() const { return m_originRegionHasBeenSet; }
56 template <typename OriginRegionT = Aws::String>
57 void SetOriginRegion(OriginRegionT&& value) {
58 m_originRegionHasBeenSet = true;
59 m_originRegion = std::forward<OriginRegionT>(value);
60 }
61 template <typename OriginRegionT = Aws::String>
63 SetOriginRegion(std::forward<OriginRegionT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
73 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
74 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
75 void SetTags(TagsT&& value) {
76 m_tagsHasBeenSet = true;
77 m_tags = std::forward<TagsT>(value);
78 }
79 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
81 SetTags(std::forward<TagsT>(value));
82 return *this;
83 }
84 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
85 CreateSourceNetworkRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
86 m_tagsHasBeenSet = true;
87 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetVpcID() const { return m_vpcID; }
97 inline bool VpcIDHasBeenSet() const { return m_vpcIDHasBeenSet; }
98 template <typename VpcIDT = Aws::String>
99 void SetVpcID(VpcIDT&& value) {
100 m_vpcIDHasBeenSet = true;
101 m_vpcID = std::forward<VpcIDT>(value);
102 }
103 template <typename VpcIDT = Aws::String>
105 SetVpcID(std::forward<VpcIDT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_originAccountID;
111
112 Aws::String m_originRegion;
113
115
116 Aws::String m_vpcID;
117 bool m_originAccountIDHasBeenSet = false;
118 bool m_originRegionHasBeenSet = false;
119 bool m_tagsHasBeenSet = false;
120 bool m_vpcIDHasBeenSet = 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