AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateAppRequest.h
1
6#pragma once
7#include <aws/sms/SMS_EXPORTS.h>
8#include <aws/sms/SMSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sms/model/ServerGroup.h>
12#include <aws/sms/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SMS
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SMS_API CreateAppRequest();
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 "CreateApp"; }
34
35 AWS_SMS_API Aws::String SerializePayload() const override;
36
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 CreateAppRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
50 inline CreateAppRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
51 inline CreateAppRequest& WithName(const char* value) { SetName(value); return *this;}
53
55
58 inline const Aws::String& GetDescription() const{ return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
61 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
62 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
63 inline CreateAppRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
64 inline CreateAppRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
65 inline CreateAppRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
67
69
73 inline const Aws::String& GetRoleName() const{ return m_roleName; }
74 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
75 inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
76 inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); }
77 inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
78 inline CreateAppRequest& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
79 inline CreateAppRequest& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;}
80 inline CreateAppRequest& WithRoleName(const char* value) { SetRoleName(value); return *this;}
82
84
88 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
89 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
90 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
91 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
92 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
93 inline CreateAppRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
94 inline CreateAppRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
95 inline CreateAppRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
97
99
102 inline const Aws::Vector<ServerGroup>& GetServerGroups() const{ return m_serverGroups; }
103 inline bool ServerGroupsHasBeenSet() const { return m_serverGroupsHasBeenSet; }
104 inline void SetServerGroups(const Aws::Vector<ServerGroup>& value) { m_serverGroupsHasBeenSet = true; m_serverGroups = value; }
105 inline void SetServerGroups(Aws::Vector<ServerGroup>&& value) { m_serverGroupsHasBeenSet = true; m_serverGroups = std::move(value); }
106 inline CreateAppRequest& WithServerGroups(const Aws::Vector<ServerGroup>& value) { SetServerGroups(value); return *this;}
107 inline CreateAppRequest& WithServerGroups(Aws::Vector<ServerGroup>&& value) { SetServerGroups(std::move(value)); return *this;}
108 inline CreateAppRequest& AddServerGroups(const ServerGroup& value) { m_serverGroupsHasBeenSet = true; m_serverGroups.push_back(value); return *this; }
109 inline CreateAppRequest& AddServerGroups(ServerGroup&& value) { m_serverGroupsHasBeenSet = true; m_serverGroups.push_back(std::move(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 CreateAppRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
121 inline CreateAppRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
122 inline CreateAppRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
123 inline CreateAppRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
125 private:
126
127 Aws::String m_name;
128 bool m_nameHasBeenSet = false;
129
130 Aws::String m_description;
131 bool m_descriptionHasBeenSet = false;
132
133 Aws::String m_roleName;
134 bool m_roleNameHasBeenSet = false;
135
136 Aws::String m_clientToken;
137 bool m_clientTokenHasBeenSet = false;
138
139 Aws::Vector<ServerGroup> m_serverGroups;
140 bool m_serverGroupsHasBeenSet = false;
141
142 Aws::Vector<Tag> m_tags;
143 bool m_tagsHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace SMS
148} // namespace Aws
CreateAppRequest & WithClientToken(const char *value)
void SetName(const Aws::String &value)
CreateAppRequest & AddServerGroups(const ServerGroup &value)
CreateAppRequest & WithDescription(const char *value)
CreateAppRequest & WithName(const char *value)
CreateAppRequest & WithRoleName(const Aws::String &value)
CreateAppRequest & WithName(Aws::String &&value)
CreateAppRequest & WithTags(Aws::Vector< Tag > &&value)
void SetName(const char *value)
CreateAppRequest & WithName(const Aws::String &value)
AWS_SMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetDescription() const
void SetClientToken(Aws::String &&value)
CreateAppRequest & WithRoleName(const char *value)
const Aws::String & GetClientToken() const
const Aws::Vector< Tag > & GetTags() const
void SetRoleName(Aws::String &&value)
CreateAppRequest & WithDescription(Aws::String &&value)
CreateAppRequest & WithTags(const Aws::Vector< Tag > &value)
void SetClientToken(const char *value)
void SetDescription(const Aws::String &value)
const Aws::Vector< ServerGroup > & GetServerGroups() const
CreateAppRequest & WithClientToken(const Aws::String &value)
CreateAppRequest & WithClientToken(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetName(Aws::String &&value)
void SetRoleName(const Aws::String &value)
CreateAppRequest & WithRoleName(Aws::String &&value)
void SetDescription(const char *value)
void SetTags(Aws::Vector< Tag > &&value)
CreateAppRequest & AddTags(Tag &&value)
void SetRoleName(const char *value)
void SetDescription(Aws::String &&value)
AWS_SMS_API Aws::String SerializePayload() const override
CreateAppRequest & WithDescription(const Aws::String &value)
const Aws::String & GetRoleName() const
CreateAppRequest & AddServerGroups(ServerGroup &&value)
void SetClientToken(const Aws::String &value)
CreateAppRequest & WithServerGroups(const Aws::Vector< ServerGroup > &value)
void SetTags(const Aws::Vector< Tag > &value)
void SetServerGroups(const Aws::Vector< ServerGroup > &value)
void SetServerGroups(Aws::Vector< ServerGroup > &&value)
CreateAppRequest & AddTags(const Tag &value)
const Aws::String & GetName() const
CreateAppRequest & WithServerGroups(Aws::Vector< ServerGroup > &&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