AWS SDK for C++

AWS SDK for C++ Version 1.11.891

Loading...
Searching...
No Matches
GetProfileResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lightsail/Lightsail_EXPORTS.h>
10#include <aws/lightsail/model/PartnerInfo.h>
11#include <aws/lightsail/model/ProfileType.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Lightsail {
25namespace Model {
27 public:
28 AWS_LIGHTSAIL_API GetProfileResult() = default;
31
33
39 inline ProfileType GetProfileType() const { return m_profileType; }
40 inline void SetProfileType(ProfileType value) {
41 m_profileTypeHasBeenSet = true;
42 m_profileType = value;
43 }
45 SetProfileType(value);
46 return *this;
47 }
49
51
57 inline const PartnerInfo& GetPartner() const { return m_partner; }
58 template <typename PartnerT = PartnerInfo>
59 void SetPartner(PartnerT&& value) {
60 m_partnerHasBeenSet = true;
61 m_partner = std::forward<PartnerT>(value);
62 }
63 template <typename PartnerT = PartnerInfo>
64 GetProfileResult& WithPartner(PartnerT&& value) {
65 SetPartner(std::forward<PartnerT>(value));
66 return *this;
67 }
69
71
72 inline const Aws::String& GetRequestId() const { return m_requestId; }
73 template <typename RequestIdT = Aws::String>
74 void SetRequestId(RequestIdT&& value) {
75 m_requestIdHasBeenSet = true;
76 m_requestId = std::forward<RequestIdT>(value);
77 }
78 template <typename RequestIdT = Aws::String>
79 GetProfileResult& WithRequestId(RequestIdT&& value) {
80 SetRequestId(std::forward<RequestIdT>(value));
81 return *this;
82 }
84 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
85
86 private:
87 ProfileType m_profileType{ProfileType::NOT_SET};
88
89 PartnerInfo m_partner;
90
91 Aws::String m_requestId;
92 Aws::Http::HttpResponseCode m_HttpResponseCode;
93 bool m_profileTypeHasBeenSet = false;
94 bool m_partnerHasBeenSet = false;
95 bool m_requestIdHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace Lightsail
100} // namespace Aws
AWS_LIGHTSAIL_API GetProfileResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetProfileResult & WithPartner(PartnerT &&value)
GetProfileResult & WithRequestId(RequestIdT &&value)
const PartnerInfo & GetPartner() const
GetProfileResult & WithProfileType(ProfileType value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_LIGHTSAIL_API GetProfileResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_LIGHTSAIL_API GetProfileResult()=default
const Aws::String & GetRequestId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue