AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetOriginAccountID(const Aws::String& value) { m_originAccountIDHasBeenSet = true; m_originAccountID = value; }
43 inline void SetOriginAccountID(Aws::String&& value) { m_originAccountIDHasBeenSet = true; m_originAccountID = std::move(value); }
44 inline void SetOriginAccountID(const char* value) { m_originAccountIDHasBeenSet = true; m_originAccountID.assign(value); }
46 inline CreateSourceNetworkRequest& WithOriginAccountID(Aws::String&& value) { SetOriginAccountID(std::move(value)); return *this;}
47 inline CreateSourceNetworkRequest& WithOriginAccountID(const char* value) { SetOriginAccountID(value); return *this;}
49
51
54 inline const Aws::String& GetOriginRegion() const{ return m_originRegion; }
55 inline bool OriginRegionHasBeenSet() const { return m_originRegionHasBeenSet; }
56 inline void SetOriginRegion(const Aws::String& value) { m_originRegionHasBeenSet = true; m_originRegion = value; }
57 inline void SetOriginRegion(Aws::String&& value) { m_originRegionHasBeenSet = true; m_originRegion = std::move(value); }
58 inline void SetOriginRegion(const char* value) { m_originRegionHasBeenSet = true; m_originRegion.assign(value); }
59 inline CreateSourceNetworkRequest& WithOriginRegion(const Aws::String& value) { SetOriginRegion(value); return *this;}
60 inline CreateSourceNetworkRequest& WithOriginRegion(Aws::String&& value) { SetOriginRegion(std::move(value)); return *this;}
61 inline CreateSourceNetworkRequest& WithOriginRegion(const char* value) { SetOriginRegion(value); return *this;}
63
65
68 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
69 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
70 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
71 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
73 inline CreateSourceNetworkRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
74 inline CreateSourceNetworkRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
75 inline CreateSourceNetworkRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
76 inline CreateSourceNetworkRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
77 inline CreateSourceNetworkRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
78 inline CreateSourceNetworkRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
79 inline CreateSourceNetworkRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
80 inline CreateSourceNetworkRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
82
84
87 inline const Aws::String& GetVpcID() const{ return m_vpcID; }
88 inline bool VpcIDHasBeenSet() const { return m_vpcIDHasBeenSet; }
89 inline void SetVpcID(const Aws::String& value) { m_vpcIDHasBeenSet = true; m_vpcID = value; }
90 inline void SetVpcID(Aws::String&& value) { m_vpcIDHasBeenSet = true; m_vpcID = std::move(value); }
91 inline void SetVpcID(const char* value) { m_vpcIDHasBeenSet = true; m_vpcID.assign(value); }
92 inline CreateSourceNetworkRequest& WithVpcID(const Aws::String& value) { SetVpcID(value); return *this;}
93 inline CreateSourceNetworkRequest& WithVpcID(Aws::String&& value) { SetVpcID(std::move(value)); return *this;}
94 inline CreateSourceNetworkRequest& WithVpcID(const char* value) { SetVpcID(value); return *this;}
96 private:
97
98 Aws::String m_originAccountID;
99 bool m_originAccountIDHasBeenSet = false;
100
101 Aws::String m_originRegion;
102 bool m_originRegionHasBeenSet = false;
103
105 bool m_tagsHasBeenSet = false;
106
107 Aws::String m_vpcID;
108 bool m_vpcIDHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace drs
113} // namespace Aws
CreateSourceNetworkRequest & WithOriginAccountID(const char *value)
CreateSourceNetworkRequest & WithVpcID(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateSourceNetworkRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateSourceNetworkRequest & AddTags(const char *key, const char *value)
CreateSourceNetworkRequest & WithOriginAccountID(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
CreateSourceNetworkRequest & AddTags(Aws::String &&key, const Aws::String &value)
AWS_DRS_API Aws::String SerializePayload() const override
CreateSourceNetworkRequest & WithOriginRegion(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateSourceNetworkRequest & AddTags(Aws::String &&key, const char *value)
CreateSourceNetworkRequest & WithOriginRegion(const char *value)
CreateSourceNetworkRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateSourceNetworkRequest & WithVpcID(const char *value)
CreateSourceNetworkRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateSourceNetworkRequest & WithOriginRegion(const Aws::String &value)
CreateSourceNetworkRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateSourceNetworkRequest & WithOriginAccountID(Aws::String &&value)
CreateSourceNetworkRequest & AddTags(const char *key, Aws::String &&value)
CreateSourceNetworkRequest & WithVpcID(const Aws::String &value)
CreateSourceNetworkRequest & AddTags(const Aws::String &key, Aws::String &&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