AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateNetworkRequest.h
1
6#pragma once
7#include <aws/privatenetworks/PrivateNetworks_EXPORTS.h>
8#include <aws/privatenetworks/PrivateNetworksRequest.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 PrivateNetworks
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_PRIVATENETWORKS_API CreateNetworkRequest();
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 "CreateNetwork"; }
32
33 AWS_PRIVATENETWORKS_API Aws::String SerializePayload() const override;
34
35
37
43 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
44 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
45 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
46 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
47 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
48 inline CreateNetworkRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
49 inline CreateNetworkRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
50 inline CreateNetworkRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
52
54
57 inline const Aws::String& GetDescription() const{ return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
60 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
61 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
62 inline CreateNetworkRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
63 inline CreateNetworkRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
64 inline CreateNetworkRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
66
68
72 inline const Aws::String& GetNetworkName() const{ return m_networkName; }
73 inline bool NetworkNameHasBeenSet() const { return m_networkNameHasBeenSet; }
74 inline void SetNetworkName(const Aws::String& value) { m_networkNameHasBeenSet = true; m_networkName = value; }
75 inline void SetNetworkName(Aws::String&& value) { m_networkNameHasBeenSet = true; m_networkName = std::move(value); }
76 inline void SetNetworkName(const char* value) { m_networkNameHasBeenSet = true; m_networkName.assign(value); }
77 inline CreateNetworkRequest& WithNetworkName(const Aws::String& value) { SetNetworkName(value); return *this;}
78 inline CreateNetworkRequest& WithNetworkName(Aws::String&& value) { SetNetworkName(std::move(value)); return *this;}
79 inline CreateNetworkRequest& WithNetworkName(const char* value) { SetNetworkName(value); return *this;}
81
83
86 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
87 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
88 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
89 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
90 inline CreateNetworkRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
91 inline CreateNetworkRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
92 inline CreateNetworkRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
93 inline CreateNetworkRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
94 inline CreateNetworkRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
95 inline CreateNetworkRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
96 inline CreateNetworkRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
97 inline CreateNetworkRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
98 inline CreateNetworkRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
100 private:
101
102 Aws::String m_clientToken;
103 bool m_clientTokenHasBeenSet = false;
104
105 Aws::String m_description;
106 bool m_descriptionHasBeenSet = false;
107
108 Aws::String m_networkName;
109 bool m_networkNameHasBeenSet = false;
110
112 bool m_tagsHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace PrivateNetworks
117} // namespace Aws
CreateNetworkRequest & WithClientToken(const char *value)
CreateNetworkRequest & WithDescription(const char *value)
CreateNetworkRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateNetworkRequest & AddTags(const char *key, const char *value)
CreateNetworkRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateNetworkRequest & WithNetworkName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateNetworkRequest & WithClientToken(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateNetworkRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateNetworkRequest & WithClientToken(const Aws::String &value)
CreateNetworkRequest & WithNetworkName(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateNetworkRequest & AddTags(const Aws::String &key, Aws::String &&value)
AWS_PRIVATENETWORKS_API Aws::String SerializePayload() const override
CreateNetworkRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateNetworkRequest & AddTags(const char *key, Aws::String &&value)
CreateNetworkRequest & WithNetworkName(Aws::String &&value)
CreateNetworkRequest & WithDescription(const Aws::String &value)
CreateNetworkRequest & WithDescription(Aws::String &&value)
CreateNetworkRequest & AddTags(Aws::String &&key, const char *value)
CreateNetworkRequest & AddTags(const Aws::String &key, const 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