AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename NameT = Aws::String>
47 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
48 template<typename NameT = Aws::String>
49 CreateAppRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
51
53
56 inline const Aws::String& GetDescription() const { return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 template<typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
60 template<typename DescriptionT = Aws::String>
61 CreateAppRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
63
65
69 inline const Aws::String& GetRoleName() const { return m_roleName; }
70 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
71 template<typename RoleNameT = Aws::String>
72 void SetRoleName(RoleNameT&& value) { m_roleNameHasBeenSet = true; m_roleName = std::forward<RoleNameT>(value); }
73 template<typename RoleNameT = Aws::String>
74 CreateAppRequest& WithRoleName(RoleNameT&& value) { SetRoleName(std::forward<RoleNameT>(value)); return *this;}
76
78
82 inline const Aws::String& GetClientToken() const { return m_clientToken; }
83 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
84 template<typename ClientTokenT = Aws::String>
85 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
86 template<typename ClientTokenT = Aws::String>
87 CreateAppRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
89
91
94 inline const Aws::Vector<ServerGroup>& GetServerGroups() const { return m_serverGroups; }
95 inline bool ServerGroupsHasBeenSet() const { return m_serverGroupsHasBeenSet; }
96 template<typename ServerGroupsT = Aws::Vector<ServerGroup>>
97 void SetServerGroups(ServerGroupsT&& value) { m_serverGroupsHasBeenSet = true; m_serverGroups = std::forward<ServerGroupsT>(value); }
98 template<typename ServerGroupsT = Aws::Vector<ServerGroup>>
99 CreateAppRequest& WithServerGroups(ServerGroupsT&& value) { SetServerGroups(std::forward<ServerGroupsT>(value)); return *this;}
100 template<typename ServerGroupsT = ServerGroup>
101 CreateAppRequest& AddServerGroups(ServerGroupsT&& value) { m_serverGroupsHasBeenSet = true; m_serverGroups.emplace_back(std::forward<ServerGroupsT>(value)); return *this; }
103
105
108 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
109 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
110 template<typename TagsT = Aws::Vector<Tag>>
111 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
112 template<typename TagsT = Aws::Vector<Tag>>
113 CreateAppRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
114 template<typename TagsT = Tag>
115 CreateAppRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
117 private:
118
119 Aws::String m_name;
120 bool m_nameHasBeenSet = false;
121
122 Aws::String m_description;
123 bool m_descriptionHasBeenSet = false;
124
125 Aws::String m_roleName;
126 bool m_roleNameHasBeenSet = false;
127
128 Aws::String m_clientToken;
129 bool m_clientTokenHasBeenSet = false;
130
131 Aws::Vector<ServerGroup> m_serverGroups;
132 bool m_serverGroupsHasBeenSet = false;
133
134 Aws::Vector<Tag> m_tags;
135 bool m_tagsHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace SMS
140} // namespace Aws
CreateAppRequest & AddTags(TagsT &&value)
CreateAppRequest & WithRoleName(RoleNameT &&value)
CreateAppRequest & WithTags(TagsT &&value)
CreateAppRequest & AddServerGroups(ServerGroupsT &&value)
void SetClientToken(ClientTokenT &&value)
CreateAppRequest & WithName(NameT &&value)
AWS_SMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetDescription() const
void SetServerGroups(ServerGroupsT &&value)
const Aws::String & GetClientToken() const
const Aws::Vector< Tag > & GetTags() const
const Aws::Vector< ServerGroup > & GetServerGroups() const
virtual const char * GetServiceRequestName() const override
void SetDescription(DescriptionT &&value)
void SetRoleName(RoleNameT &&value)
CreateAppRequest & WithDescription(DescriptionT &&value)
AWS_SMS_API CreateAppRequest()=default
AWS_SMS_API Aws::String SerializePayload() const override
CreateAppRequest & WithClientToken(ClientTokenT &&value)
const Aws::String & GetRoleName() const
CreateAppRequest & WithServerGroups(ServerGroupsT &&value)
const Aws::String & GetName() const
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