AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateMeshRequest.h
1
6#pragma once
7#include <aws/appmesh/AppMeshRequest.h>
8#include <aws/appmesh/AppMesh_EXPORTS.h>
9#include <aws/appmesh/model/MeshSpec.h>
10#include <aws/appmesh/model/TagRef.h>
11#include <aws/core/utils/UUID.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace AppMesh {
19namespace Model {
20
27 public:
28 AWS_APPMESH_API CreateMeshRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateMesh"; }
35
36 AWS_APPMESH_API Aws::String SerializePayload() const override;
37
39
44 inline const Aws::String& GetClientToken() const { return m_clientToken; }
45 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
46 template <typename ClientTokenT = Aws::String>
47 void SetClientToken(ClientTokenT&& value) {
48 m_clientTokenHasBeenSet = true;
49 m_clientToken = std::forward<ClientTokenT>(value);
50 }
51 template <typename ClientTokenT = Aws::String>
52 CreateMeshRequest& WithClientToken(ClientTokenT&& value) {
53 SetClientToken(std::forward<ClientTokenT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetMeshName() const { return m_meshName; }
63 inline bool MeshNameHasBeenSet() const { return m_meshNameHasBeenSet; }
64 template <typename MeshNameT = Aws::String>
65 void SetMeshName(MeshNameT&& value) {
66 m_meshNameHasBeenSet = true;
67 m_meshName = std::forward<MeshNameT>(value);
68 }
69 template <typename MeshNameT = Aws::String>
70 CreateMeshRequest& WithMeshName(MeshNameT&& value) {
71 SetMeshName(std::forward<MeshNameT>(value));
72 return *this;
73 }
75
77
80 inline const MeshSpec& GetSpec() const { return m_spec; }
81 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
82 template <typename SpecT = MeshSpec>
83 void SetSpec(SpecT&& value) {
84 m_specHasBeenSet = true;
85 m_spec = std::forward<SpecT>(value);
86 }
87 template <typename SpecT = MeshSpec>
88 CreateMeshRequest& WithSpec(SpecT&& value) {
89 SetSpec(std::forward<SpecT>(value));
90 return *this;
91 }
93
95
101 inline const Aws::Vector<TagRef>& GetTags() const { return m_tags; }
102 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
103 template <typename TagsT = Aws::Vector<TagRef>>
104 void SetTags(TagsT&& value) {
105 m_tagsHasBeenSet = true;
106 m_tags = std::forward<TagsT>(value);
107 }
108 template <typename TagsT = Aws::Vector<TagRef>>
109 CreateMeshRequest& WithTags(TagsT&& value) {
110 SetTags(std::forward<TagsT>(value));
111 return *this;
112 }
113 template <typename TagsT = TagRef>
114 CreateMeshRequest& AddTags(TagsT&& value) {
115 m_tagsHasBeenSet = true;
116 m_tags.emplace_back(std::forward<TagsT>(value));
117 return *this;
118 }
120 private:
122
123 Aws::String m_meshName;
124
125 MeshSpec m_spec;
126
127 Aws::Vector<TagRef> m_tags;
128 bool m_clientTokenHasBeenSet = true;
129 bool m_meshNameHasBeenSet = false;
130 bool m_specHasBeenSet = false;
131 bool m_tagsHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace AppMesh
136} // namespace Aws
CreateMeshRequest & WithTags(TagsT &&value)
CreateMeshRequest & AddTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
CreateMeshRequest & WithClientToken(ClientTokenT &&value)
void SetClientToken(ClientTokenT &&value)
AWS_APPMESH_API Aws::String SerializePayload() const override
CreateMeshRequest & WithSpec(SpecT &&value)
const Aws::String & GetMeshName() const
const Aws::Vector< TagRef > & GetTags() const
const Aws::String & GetClientToken() const
CreateMeshRequest & WithMeshName(MeshNameT &&value)
AWS_APPMESH_API CreateMeshRequest()=default
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector