AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateServiceNetworkRequest.h
1
6#pragma once
7#include <aws/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/vpc-lattice/VPCLatticeRequest.h>
9#include <aws/vpc-lattice/model/AuthType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace VPCLattice
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_VPCLATTICE_API CreateServiceNetworkRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateServiceNetwork"; }
34
35 AWS_VPCLATTICE_API Aws::String SerializePayload() const override;
36
37
39
45 inline const AuthType& GetAuthType() const{ return m_authType; }
46 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
47 inline void SetAuthType(const AuthType& value) { m_authTypeHasBeenSet = true; m_authType = value; }
48 inline void SetAuthType(AuthType&& value) { m_authTypeHasBeenSet = true; m_authType = std::move(value); }
49 inline CreateServiceNetworkRequest& WithAuthType(const AuthType& value) { SetAuthType(value); return *this;}
50 inline CreateServiceNetworkRequest& WithAuthType(AuthType&& value) { SetAuthType(std::move(value)); return *this;}
52
54
60 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
61 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
62 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
63 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
64 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
65 inline CreateServiceNetworkRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
66 inline CreateServiceNetworkRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
67 inline CreateServiceNetworkRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
69
71
76 inline const Aws::String& GetName() const{ return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
79 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
80 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
81 inline CreateServiceNetworkRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
82 inline CreateServiceNetworkRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
83 inline CreateServiceNetworkRequest& WithName(const char* value) { SetName(value); return *this;}
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 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
93 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
95 inline CreateServiceNetworkRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
96 inline CreateServiceNetworkRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
97 inline CreateServiceNetworkRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
98 inline CreateServiceNetworkRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
99 inline CreateServiceNetworkRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
100 inline CreateServiceNetworkRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
101 inline CreateServiceNetworkRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
102 inline CreateServiceNetworkRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
104 private:
105
106 AuthType m_authType;
107 bool m_authTypeHasBeenSet = false;
108
109 Aws::String m_clientToken;
110 bool m_clientTokenHasBeenSet = false;
111
112 Aws::String m_name;
113 bool m_nameHasBeenSet = false;
114
116 bool m_tagsHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace VPCLattice
121} // namespace Aws
CreateServiceNetworkRequest & AddTags(Aws::String &&key, const char *value)
CreateServiceNetworkRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateServiceNetworkRequest & AddTags(const Aws::String &key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateServiceNetworkRequest & WithClientToken(const char *value)
AWS_VPCLATTICE_API Aws::String SerializePayload() const override
CreateServiceNetworkRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateServiceNetworkRequest & WithName(Aws::String &&value)
CreateServiceNetworkRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateServiceNetworkRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateServiceNetworkRequest & WithName(const Aws::String &value)
CreateServiceNetworkRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateServiceNetworkRequest & WithAuthType(const AuthType &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateServiceNetworkRequest & WithName(const char *value)
CreateServiceNetworkRequest & WithClientToken(const Aws::String &value)
CreateServiceNetworkRequest & WithAuthType(AuthType &&value)
CreateServiceNetworkRequest & AddTags(const char *key, const char *value)
CreateServiceNetworkRequest & WithClientToken(Aws::String &&value)
CreateServiceNetworkRequest & AddTags(const char *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