AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateSourceNetworkRequest.h
1
6#pragma once
7#include <aws/drs/Drs_EXPORTS.h>
8#include <aws/drs/DrsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace drs
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_DRS_API CreateSourceNetworkRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateSourceNetwork"; }
32
33 AWS_DRS_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetOriginAccountID() const { return m_originAccountID; }
41 inline bool OriginAccountIDHasBeenSet() const { return m_originAccountIDHasBeenSet; }
42 template<typename OriginAccountIDT = Aws::String>
43 void SetOriginAccountID(OriginAccountIDT&& value) { m_originAccountIDHasBeenSet = true; m_originAccountID = std::forward<OriginAccountIDT>(value); }
44 template<typename OriginAccountIDT = Aws::String>
45 CreateSourceNetworkRequest& WithOriginAccountID(OriginAccountIDT&& value) { SetOriginAccountID(std::forward<OriginAccountIDT>(value)); return *this;}
47
49
52 inline const Aws::String& GetOriginRegion() const { return m_originRegion; }
53 inline bool OriginRegionHasBeenSet() const { return m_originRegionHasBeenSet; }
54 template<typename OriginRegionT = Aws::String>
55 void SetOriginRegion(OriginRegionT&& value) { m_originRegionHasBeenSet = true; m_originRegion = std::forward<OriginRegionT>(value); }
56 template<typename OriginRegionT = Aws::String>
57 CreateSourceNetworkRequest& WithOriginRegion(OriginRegionT&& value) { SetOriginRegion(std::forward<OriginRegionT>(value)); return *this;}
59
61
64 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
65 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
66 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
67 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
68 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
69 CreateSourceNetworkRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
70 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
71 CreateSourceNetworkRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
72 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
73 }
75
77
80 inline const Aws::String& GetVpcID() const { return m_vpcID; }
81 inline bool VpcIDHasBeenSet() const { return m_vpcIDHasBeenSet; }
82 template<typename VpcIDT = Aws::String>
83 void SetVpcID(VpcIDT&& value) { m_vpcIDHasBeenSet = true; m_vpcID = std::forward<VpcIDT>(value); }
84 template<typename VpcIDT = Aws::String>
85 CreateSourceNetworkRequest& WithVpcID(VpcIDT&& value) { SetVpcID(std::forward<VpcIDT>(value)); return *this;}
87 private:
88
89 Aws::String m_originAccountID;
90 bool m_originAccountIDHasBeenSet = false;
91
92 Aws::String m_originRegion;
93 bool m_originRegionHasBeenSet = false;
94
96 bool m_tagsHasBeenSet = false;
97
98 Aws::String m_vpcID;
99 bool m_vpcIDHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace drs
104} // 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