AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
47 inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
48 inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
49 inline UpdateAppRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
50 inline UpdateAppRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
51 inline UpdateAppRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
53
55
58 inline const Aws::String& GetName() const{ return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
61 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
62 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
63 inline UpdateAppRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
64 inline UpdateAppRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
65 inline UpdateAppRequest& WithName(const char* value) { SetName(value); return *this;}
67
69
72 inline const Aws::String& GetDescription() const{ return m_description; }
73 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
74 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
75 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
76 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
77 inline UpdateAppRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
78 inline UpdateAppRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
79 inline UpdateAppRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
81
83
87 inline const Aws::String& GetRoleName() const{ return m_roleName; }
88 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
89 inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
90 inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); }
91 inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
92 inline UpdateAppRequest& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
93 inline UpdateAppRequest& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;}
94 inline UpdateAppRequest& WithRoleName(const char* value) { SetRoleName(value); return *this;}
96
98
101 inline const Aws::Vector<ServerGroup>& GetServerGroups() const{ return m_serverGroups; }
102 inline bool ServerGroupsHasBeenSet() const { return m_serverGroupsHasBeenSet; }
103 inline void SetServerGroups(const Aws::Vector<ServerGroup>& value) { m_serverGroupsHasBeenSet = true; m_serverGroups = value; }
104 inline void SetServerGroups(Aws::Vector<ServerGroup>&& value) { m_serverGroupsHasBeenSet = true; m_serverGroups = std::move(value); }
105 inline UpdateAppRequest& WithServerGroups(const Aws::Vector<ServerGroup>& value) { SetServerGroups(value); return *this;}
106 inline UpdateAppRequest& WithServerGroups(Aws::Vector<ServerGroup>&& value) { SetServerGroups(std::move(value)); return *this;}
107 inline UpdateAppRequest& AddServerGroups(const ServerGroup& value) { m_serverGroupsHasBeenSet = true; m_serverGroups.push_back(value); return *this; }
108 inline UpdateAppRequest& AddServerGroups(ServerGroup&& value) { m_serverGroupsHasBeenSet = true; m_serverGroups.push_back(std::move(value)); return *this; }
110
112
115 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
116 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
117 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
118 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
119 inline UpdateAppRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
120 inline UpdateAppRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
121 inline UpdateAppRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
122 inline UpdateAppRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
124 private:
125
126 Aws::String m_appId;
127 bool m_appIdHasBeenSet = false;
128
129 Aws::String m_name;
130 bool m_nameHasBeenSet = false;
131
132 Aws::String m_description;
133 bool m_descriptionHasBeenSet = false;
134
135 Aws::String m_roleName;
136 bool m_roleNameHasBeenSet = false;
137
138 Aws::Vector<ServerGroup> m_serverGroups;
139 bool m_serverGroupsHasBeenSet = false;
140
141 Aws::Vector<Tag> m_tags;
142 bool m_tagsHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace SMS
147} // namespace Aws
UpdateAppRequest & WithServerGroups(const Aws::Vector< ServerGroup > &value)
AWS_SMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateAppRequest & AddServerGroups(const ServerGroup &value)
UpdateAppRequest & AddServerGroups(ServerGroup &&value)
const Aws::Vector< Tag > & GetTags() const
UpdateAppRequest & WithDescription(Aws::String &&value)
void SetAppId(const char *value)
const Aws::String & GetRoleName() const
UpdateAppRequest & WithDescription(const char *value)
void SetDescription(const char *value)
void SetRoleName(const char *value)
UpdateAppRequest & WithRoleName(const Aws::String &value)
void SetName(const char *value)
const Aws::String & GetName() const
void SetRoleName(Aws::String &&value)
void SetTags(Aws::Vector< Tag > &&value)
UpdateAppRequest & WithServerGroups(Aws::Vector< ServerGroup > &&value)
const Aws::Vector< ServerGroup > & GetServerGroups() const
void SetName(Aws::String &&value)
UpdateAppRequest & WithAppId(const Aws::String &value)
void SetServerGroups(Aws::Vector< ServerGroup > &&value)
void SetDescription(Aws::String &&value)
const Aws::String & GetDescription() const
void SetName(const Aws::String &value)
const Aws::String & GetAppId() const
void SetAppId(Aws::String &&value)
UpdateAppRequest & WithDescription(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
UpdateAppRequest & AddTags(const Tag &value)
UpdateAppRequest & WithAppId(const char *value)
virtual const char * GetServiceRequestName() const override
UpdateAppRequest & AddTags(Tag &&value)
UpdateAppRequest & WithTags(const Aws::Vector< Tag > &value)
UpdateAppRequest & WithName(const Aws::String &value)
UpdateAppRequest & WithRoleName(Aws::String &&value)
void SetRoleName(const Aws::String &value)
UpdateAppRequest & WithTags(Aws::Vector< Tag > &&value)
UpdateAppRequest & WithAppId(Aws::String &&value)
void SetAppId(const Aws::String &value)
UpdateAppRequest & WithRoleName(const char *value)
UpdateAppRequest & WithName(const char *value)
void SetServerGroups(const Aws::Vector< ServerGroup > &value)
UpdateAppRequest & WithName(Aws::String &&value)
AWS_SMS_API Aws::String SerializePayload() const override
void SetDescription(const Aws::String &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