AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateAppRequest.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 UpdateAppRequest() = 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 "UpdateApp"; }
34
35 AWS_SMS_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetAppId() const { return m_appId; }
45 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
46 template<typename AppIdT = Aws::String>
47 void SetAppId(AppIdT&& value) { m_appIdHasBeenSet = true; m_appId = std::forward<AppIdT>(value); }
48 template<typename AppIdT = Aws::String>
49 UpdateAppRequest& WithAppId(AppIdT&& value) { SetAppId(std::forward<AppIdT>(value)); return *this;}
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template<typename NameT = Aws::String>
59 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
60 template<typename NameT = Aws::String>
61 UpdateAppRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
63
65
68 inline const Aws::String& GetDescription() const { return m_description; }
69 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
70 template<typename DescriptionT = Aws::String>
71 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
72 template<typename DescriptionT = Aws::String>
73 UpdateAppRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
75
77
81 inline const Aws::String& GetRoleName() const { return m_roleName; }
82 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
83 template<typename RoleNameT = Aws::String>
84 void SetRoleName(RoleNameT&& value) { m_roleNameHasBeenSet = true; m_roleName = std::forward<RoleNameT>(value); }
85 template<typename RoleNameT = Aws::String>
86 UpdateAppRequest& WithRoleName(RoleNameT&& value) { SetRoleName(std::forward<RoleNameT>(value)); return *this;}
88
90
93 inline const Aws::Vector<ServerGroup>& GetServerGroups() const { return m_serverGroups; }
94 inline bool ServerGroupsHasBeenSet() const { return m_serverGroupsHasBeenSet; }
95 template<typename ServerGroupsT = Aws::Vector<ServerGroup>>
96 void SetServerGroups(ServerGroupsT&& value) { m_serverGroupsHasBeenSet = true; m_serverGroups = std::forward<ServerGroupsT>(value); }
97 template<typename ServerGroupsT = Aws::Vector<ServerGroup>>
98 UpdateAppRequest& WithServerGroups(ServerGroupsT&& value) { SetServerGroups(std::forward<ServerGroupsT>(value)); return *this;}
99 template<typename ServerGroupsT = ServerGroup>
100 UpdateAppRequest& AddServerGroups(ServerGroupsT&& value) { m_serverGroupsHasBeenSet = true; m_serverGroups.emplace_back(std::forward<ServerGroupsT>(value)); return *this; }
102
104
107 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
108 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
109 template<typename TagsT = Aws::Vector<Tag>>
110 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
111 template<typename TagsT = Aws::Vector<Tag>>
112 UpdateAppRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
113 template<typename TagsT = Tag>
114 UpdateAppRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
116 private:
117
118 Aws::String m_appId;
119 bool m_appIdHasBeenSet = false;
120
121 Aws::String m_name;
122 bool m_nameHasBeenSet = false;
123
124 Aws::String m_description;
125 bool m_descriptionHasBeenSet = false;
126
127 Aws::String m_roleName;
128 bool m_roleNameHasBeenSet = false;
129
130 Aws::Vector<ServerGroup> m_serverGroups;
131 bool m_serverGroupsHasBeenSet = false;
132
133 Aws::Vector<Tag> m_tags;
134 bool m_tagsHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace SMS
139} // namespace Aws
AWS_SMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Tag > & GetTags() const
const Aws::String & GetRoleName() const
const Aws::String & GetName() const
void SetDescription(DescriptionT &&value)
const Aws::Vector< ServerGroup > & GetServerGroups() const
void SetRoleName(RoleNameT &&value)
const Aws::String & GetDescription() const
const Aws::String & GetAppId() const
UpdateAppRequest & WithTags(TagsT &&value)
UpdateAppRequest & WithName(NameT &&value)
UpdateAppRequest & AddTags(TagsT &&value)
UpdateAppRequest & WithAppId(AppIdT &&value)
UpdateAppRequest & AddServerGroups(ServerGroupsT &&value)
virtual const char * GetServiceRequestName() const override
UpdateAppRequest & WithServerGroups(ServerGroupsT &&value)
void SetServerGroups(ServerGroupsT &&value)
UpdateAppRequest & WithRoleName(RoleNameT &&value)
AWS_SMS_API UpdateAppRequest()=default
UpdateAppRequest & WithDescription(DescriptionT &&value)
AWS_SMS_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