AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateOutpostResolverRequest.h
1
6#pragma once
7#include <aws/route53resolver/Route53Resolver_EXPORTS.h>
8#include <aws/route53resolver/Route53ResolverRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/route53resolver/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Route53Resolver
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_ROUTE53RESOLVER_API CreateOutpostResolverRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateOutpostResolver"; }
33
34 AWS_ROUTE53RESOLVER_API Aws::String SerializePayload() const override;
35
36 AWS_ROUTE53RESOLVER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
46 inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; }
47 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
48 inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; }
49 inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); }
50 inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); }
52 inline CreateOutpostResolverRequest& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;}
53 inline CreateOutpostResolverRequest& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
55
57
61 inline const Aws::String& GetName() const{ return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 inline CreateOutpostResolverRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline CreateOutpostResolverRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline CreateOutpostResolverRequest& WithName(const char* value) { SetName(value); return *this;}
70
72
76 inline int GetInstanceCount() const{ return m_instanceCount; }
77 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
78 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
79 inline CreateOutpostResolverRequest& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
81
83
87 inline const Aws::String& GetPreferredInstanceType() const{ return m_preferredInstanceType; }
88 inline bool PreferredInstanceTypeHasBeenSet() const { return m_preferredInstanceTypeHasBeenSet; }
89 inline void SetPreferredInstanceType(const Aws::String& value) { m_preferredInstanceTypeHasBeenSet = true; m_preferredInstanceType = value; }
90 inline void SetPreferredInstanceType(Aws::String&& value) { m_preferredInstanceTypeHasBeenSet = true; m_preferredInstanceType = std::move(value); }
91 inline void SetPreferredInstanceType(const char* value) { m_preferredInstanceTypeHasBeenSet = true; m_preferredInstanceType.assign(value); }
94 inline CreateOutpostResolverRequest& WithPreferredInstanceType(const char* value) { SetPreferredInstanceType(value); return *this;}
96
98
102 inline const Aws::String& GetOutpostArn() const{ return m_outpostArn; }
103 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
104 inline void SetOutpostArn(const Aws::String& value) { m_outpostArnHasBeenSet = true; m_outpostArn = value; }
105 inline void SetOutpostArn(Aws::String&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::move(value); }
106 inline void SetOutpostArn(const char* value) { m_outpostArnHasBeenSet = true; m_outpostArn.assign(value); }
107 inline CreateOutpostResolverRequest& WithOutpostArn(const Aws::String& value) { SetOutpostArn(value); return *this;}
108 inline CreateOutpostResolverRequest& WithOutpostArn(Aws::String&& value) { SetOutpostArn(std::move(value)); return *this;}
109 inline CreateOutpostResolverRequest& WithOutpostArn(const char* value) { SetOutpostArn(value); return *this;}
111
113
116 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
117 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
118 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
119 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
120 inline CreateOutpostResolverRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
121 inline CreateOutpostResolverRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
122 inline CreateOutpostResolverRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
123 inline CreateOutpostResolverRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
125 private:
126
127 Aws::String m_creatorRequestId;
128 bool m_creatorRequestIdHasBeenSet = false;
129
130 Aws::String m_name;
131 bool m_nameHasBeenSet = false;
132
133 int m_instanceCount;
134 bool m_instanceCountHasBeenSet = false;
135
136 Aws::String m_preferredInstanceType;
137 bool m_preferredInstanceTypeHasBeenSet = false;
138
139 Aws::String m_outpostArn;
140 bool m_outpostArnHasBeenSet = false;
141
142 Aws::Vector<Tag> m_tags;
143 bool m_tagsHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace Route53Resolver
148} // namespace Aws
AWS_ROUTE53RESOLVER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateOutpostResolverRequest & WithTags(const Aws::Vector< Tag > &value)
CreateOutpostResolverRequest & WithPreferredInstanceType(const char *value)
CreateOutpostResolverRequest & WithOutpostArn(const char *value)
CreateOutpostResolverRequest & WithPreferredInstanceType(Aws::String &&value)
CreateOutpostResolverRequest & WithName(Aws::String &&value)
CreateOutpostResolverRequest & WithName(const Aws::String &value)
CreateOutpostResolverRequest & WithOutpostArn(const Aws::String &value)
CreateOutpostResolverRequest & WithCreatorRequestId(const Aws::String &value)
CreateOutpostResolverRequest & AddTags(const Tag &value)
CreateOutpostResolverRequest & WithName(const char *value)
CreateOutpostResolverRequest & WithCreatorRequestId(Aws::String &&value)
CreateOutpostResolverRequest & WithOutpostArn(Aws::String &&value)
CreateOutpostResolverRequest & WithCreatorRequestId(const char *value)
CreateOutpostResolverRequest & WithPreferredInstanceType(const Aws::String &value)
CreateOutpostResolverRequest & WithTags(Aws::Vector< Tag > &&value)
AWS_ROUTE53RESOLVER_API Aws::String SerializePayload() const override
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