AWS SDK for C++

AWS SDK for C++ Version 1.11.778

Loading...
Searching...
No Matches
EnableFederationResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/model/FederationStatus.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace CloudTrail {
24namespace Model {
26 public:
27 AWS_CLOUDTRAIL_API EnableFederationResult() = default;
30
32
36 inline const Aws::String& GetEventDataStoreArn() const { return m_eventDataStoreArn; }
37 template <typename EventDataStoreArnT = Aws::String>
38 void SetEventDataStoreArn(EventDataStoreArnT&& value) {
39 m_eventDataStoreArnHasBeenSet = true;
40 m_eventDataStoreArn = std::forward<EventDataStoreArnT>(value);
41 }
42 template <typename EventDataStoreArnT = Aws::String>
43 EnableFederationResult& WithEventDataStoreArn(EventDataStoreArnT&& value) {
44 SetEventDataStoreArn(std::forward<EventDataStoreArnT>(value));
45 return *this;
46 }
48
50
53 inline FederationStatus GetFederationStatus() const { return m_federationStatus; }
55 m_federationStatusHasBeenSet = true;
56 m_federationStatus = value;
57 }
60 return *this;
61 }
63
65
68 inline const Aws::String& GetFederationRoleArn() const { return m_federationRoleArn; }
69 template <typename FederationRoleArnT = Aws::String>
70 void SetFederationRoleArn(FederationRoleArnT&& value) {
71 m_federationRoleArnHasBeenSet = true;
72 m_federationRoleArn = std::forward<FederationRoleArnT>(value);
73 }
74 template <typename FederationRoleArnT = Aws::String>
75 EnableFederationResult& WithFederationRoleArn(FederationRoleArnT&& value) {
76 SetFederationRoleArn(std::forward<FederationRoleArnT>(value));
77 return *this;
78 }
80
82
83 inline const Aws::String& GetRequestId() const { return m_requestId; }
84 template <typename RequestIdT = Aws::String>
85 void SetRequestId(RequestIdT&& value) {
86 m_requestIdHasBeenSet = true;
87 m_requestId = std::forward<RequestIdT>(value);
88 }
89 template <typename RequestIdT = Aws::String>
91 SetRequestId(std::forward<RequestIdT>(value));
92 return *this;
93 }
95 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
96
97 private:
98 Aws::String m_eventDataStoreArn;
99
101
102 Aws::String m_federationRoleArn;
103
104 Aws::String m_requestId;
105 Aws::Http::HttpResponseCode m_HttpResponseCode;
106 bool m_eventDataStoreArnHasBeenSet = false;
107 bool m_federationStatusHasBeenSet = false;
108 bool m_federationRoleArnHasBeenSet = false;
109 bool m_requestIdHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace CloudTrail
114} // namespace Aws
AWS_CLOUDTRAIL_API EnableFederationResult()=default
EnableFederationResult & WithRequestId(RequestIdT &&value)
EnableFederationResult & WithFederationStatus(FederationStatus value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_CLOUDTRAIL_API EnableFederationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CLOUDTRAIL_API EnableFederationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
EnableFederationResult & WithFederationRoleArn(FederationRoleArnT &&value)
EnableFederationResult & WithEventDataStoreArn(EventDataStoreArnT &&value)
void SetEventDataStoreArn(EventDataStoreArnT &&value)
void SetFederationRoleArn(FederationRoleArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue