AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
GetAppResult.h
1
6#pragma once
7#include <aws/sms/SMS_EXPORTS.h>
8#include <aws/sms/model/AppSummary.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/sms/model/ServerGroup.h>
12#include <aws/sms/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace SMS
28{
29namespace Model
30{
32 {
33 public:
34 AWS_SMS_API GetAppResult() = default;
37
38
40
43 inline const AppSummary& GetAppSummary() const { return m_appSummary; }
44 template<typename AppSummaryT = AppSummary>
45 void SetAppSummary(AppSummaryT&& value) { m_appSummaryHasBeenSet = true; m_appSummary = std::forward<AppSummaryT>(value); }
46 template<typename AppSummaryT = AppSummary>
47 GetAppResult& WithAppSummary(AppSummaryT&& value) { SetAppSummary(std::forward<AppSummaryT>(value)); return *this;}
49
51
54 inline const Aws::Vector<ServerGroup>& GetServerGroups() const { return m_serverGroups; }
55 template<typename ServerGroupsT = Aws::Vector<ServerGroup>>
56 void SetServerGroups(ServerGroupsT&& value) { m_serverGroupsHasBeenSet = true; m_serverGroups = std::forward<ServerGroupsT>(value); }
57 template<typename ServerGroupsT = Aws::Vector<ServerGroup>>
58 GetAppResult& WithServerGroups(ServerGroupsT&& value) { SetServerGroups(std::forward<ServerGroupsT>(value)); return *this;}
59 template<typename ServerGroupsT = ServerGroup>
60 GetAppResult& AddServerGroups(ServerGroupsT&& value) { m_serverGroupsHasBeenSet = true; m_serverGroups.emplace_back(std::forward<ServerGroupsT>(value)); return *this; }
62
64
67 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
68 template<typename TagsT = Aws::Vector<Tag>>
69 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
70 template<typename TagsT = Aws::Vector<Tag>>
71 GetAppResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
72 template<typename TagsT = Tag>
73 GetAppResult& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
75
77
78 inline const Aws::String& GetRequestId() const { return m_requestId; }
79 template<typename RequestIdT = Aws::String>
80 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
81 template<typename RequestIdT = Aws::String>
82 GetAppResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
84 private:
85
86 AppSummary m_appSummary;
87 bool m_appSummaryHasBeenSet = false;
88
89 Aws::Vector<ServerGroup> m_serverGroups;
90 bool m_serverGroupsHasBeenSet = false;
91
92 Aws::Vector<Tag> m_tags;
93 bool m_tagsHasBeenSet = false;
94
95 Aws::String m_requestId;
96 bool m_requestIdHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace SMS
101} // namespace Aws
AWS_SMS_API GetAppResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_SMS_API GetAppResult()=default
GetAppResult & WithAppSummary(AppSummaryT &&value)
void SetAppSummary(AppSummaryT &&value)
GetAppResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetRequestId() const
void SetServerGroups(ServerGroupsT &&value)
GetAppResult & WithTags(TagsT &&value)
void SetTags(TagsT &&value)
const Aws::Vector< Tag > & GetTags() const
const AppSummary & GetAppSummary() const
void SetRequestId(RequestIdT &&value)
GetAppResult & AddServerGroups(ServerGroupsT &&value)
const Aws::Vector< ServerGroup > & GetServerGroups() const
GetAppResult & AddTags(TagsT &&value)
AWS_SMS_API GetAppResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAppResult & WithServerGroups(ServerGroupsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue