AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateHttpNamespaceRequest.h
1
6#pragma once
7#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.h>
8#include <aws/servicediscovery/ServiceDiscoveryRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/servicediscovery/model/Tag.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace ServiceDiscovery
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SERVICEDISCOVERY_API CreateHttpNamespaceRequest();
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 "CreateHttpNamespace"; }
34
35 AWS_SERVICEDISCOVERY_API Aws::String SerializePayload() const override;
36
37 AWS_SERVICEDISCOVERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::String& GetName() const{ return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
47 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
48 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
49 inline CreateHttpNamespaceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
50 inline CreateHttpNamespaceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
51 inline CreateHttpNamespaceRequest& WithName(const char* value) { SetName(value); return *this;}
53
55
61 inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; }
62 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
63 inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; }
64 inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); }
65 inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); }
67 inline CreateHttpNamespaceRequest& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;}
68 inline CreateHttpNamespaceRequest& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
70
72
75 inline const Aws::String& GetDescription() const{ return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
78 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
79 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
80 inline CreateHttpNamespaceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
81 inline CreateHttpNamespaceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
82 inline CreateHttpNamespaceRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
84
86
91 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
92 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
93 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
94 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
95 inline CreateHttpNamespaceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
96 inline CreateHttpNamespaceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
97 inline CreateHttpNamespaceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
98 inline CreateHttpNamespaceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
100 private:
101
102 Aws::String m_name;
103 bool m_nameHasBeenSet = false;
104
105 Aws::String m_creatorRequestId;
106 bool m_creatorRequestIdHasBeenSet = false;
107
108 Aws::String m_description;
109 bool m_descriptionHasBeenSet = false;
110
111 Aws::Vector<Tag> m_tags;
112 bool m_tagsHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace ServiceDiscovery
117} // namespace Aws
CreateHttpNamespaceRequest & WithName(Aws::String &&value)
CreateHttpNamespaceRequest & WithDescription(const char *value)
CreateHttpNamespaceRequest & WithName(const Aws::String &value)
CreateHttpNamespaceRequest & WithTags(const Aws::Vector< Tag > &value)
CreateHttpNamespaceRequest & AddTags(const Tag &value)
CreateHttpNamespaceRequest & WithTags(Aws::Vector< Tag > &&value)
CreateHttpNamespaceRequest & WithDescription(const Aws::String &value)
CreateHttpNamespaceRequest & WithDescription(Aws::String &&value)
AWS_SERVICEDISCOVERY_API Aws::String SerializePayload() const override
CreateHttpNamespaceRequest & WithName(const char *value)
AWS_SERVICEDISCOVERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateHttpNamespaceRequest & WithCreatorRequestId(const Aws::String &value)
CreateHttpNamespaceRequest & WithCreatorRequestId(Aws::String &&value)
CreateHttpNamespaceRequest & WithCreatorRequestId(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector