AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateIpamScopeRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/TagSpecification.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace Model
20{
21
25 {
26 public:
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 "CreateIpamScope"; }
34
35 AWS_EC2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
49 inline bool GetDryRun() const{ return m_dryRun; }
50 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
51 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
52 inline CreateIpamScopeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
54
56
59 inline const Aws::String& GetIpamId() const{ return m_ipamId; }
60 inline bool IpamIdHasBeenSet() const { return m_ipamIdHasBeenSet; }
61 inline void SetIpamId(const Aws::String& value) { m_ipamIdHasBeenSet = true; m_ipamId = value; }
62 inline void SetIpamId(Aws::String&& value) { m_ipamIdHasBeenSet = true; m_ipamId = std::move(value); }
63 inline void SetIpamId(const char* value) { m_ipamIdHasBeenSet = true; m_ipamId.assign(value); }
64 inline CreateIpamScopeRequest& WithIpamId(const Aws::String& value) { SetIpamId(value); return *this;}
65 inline CreateIpamScopeRequest& WithIpamId(Aws::String&& value) { SetIpamId(std::move(value)); return *this;}
66 inline CreateIpamScopeRequest& WithIpamId(const char* value) { SetIpamId(value); return *this;}
68
70
73 inline const Aws::String& GetDescription() const{ return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
76 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
77 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
78 inline CreateIpamScopeRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
79 inline CreateIpamScopeRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
80 inline CreateIpamScopeRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
82
84
91 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
92 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
93 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
94 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
97 inline CreateIpamScopeRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
98 inline CreateIpamScopeRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
100
102
108 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
109 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
110 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
111 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
112 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
113 inline CreateIpamScopeRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
114 inline CreateIpamScopeRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
115 inline CreateIpamScopeRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
117 private:
118
119 bool m_dryRun;
120 bool m_dryRunHasBeenSet = false;
121
122 Aws::String m_ipamId;
123 bool m_ipamIdHasBeenSet = false;
124
125 Aws::String m_description;
126 bool m_descriptionHasBeenSet = false;
127
128 Aws::Vector<TagSpecification> m_tagSpecifications;
129 bool m_tagSpecificationsHasBeenSet = false;
130
131 Aws::String m_clientToken;
132 bool m_clientTokenHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace EC2
137} // namespace Aws
AWS_EC2_API Aws::String SerializePayload() const override
CreateIpamScopeRequest & WithDryRun(bool value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateIpamScopeRequest & WithIpamId(Aws::String &&value)
CreateIpamScopeRequest & WithClientToken(Aws::String &&value)
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
void SetDescription(const Aws::String &value)
CreateIpamScopeRequest & WithDescription(const Aws::String &value)
CreateIpamScopeRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateIpamScopeRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateIpamScopeRequest & AddTagSpecifications(TagSpecification &&value)
CreateIpamScopeRequest & WithDescription(const char *value)
void SetClientToken(const Aws::String &value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateIpamScopeRequest & WithIpamId(const char *value)
CreateIpamScopeRequest & AddTagSpecifications(const TagSpecification &value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateIpamScopeRequest & WithClientToken(const Aws::String &value)
CreateIpamScopeRequest & WithClientToken(const char *value)
virtual const char * GetServiceRequestName() const override
CreateIpamScopeRequest & WithDescription(Aws::String &&value)
CreateIpamScopeRequest & WithIpamId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector