AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace CloudTrail {
23namespace Model {
25 public:
26 AWS_CLOUDTRAIL_API EnableFederationResult() = default;
29
31
35 inline const Aws::String& GetEventDataStoreArn() const { return m_eventDataStoreArn; }
36 template <typename EventDataStoreArnT = Aws::String>
37 void SetEventDataStoreArn(EventDataStoreArnT&& value) {
38 m_eventDataStoreArnHasBeenSet = true;
39 m_eventDataStoreArn = std::forward<EventDataStoreArnT>(value);
40 }
41 template <typename EventDataStoreArnT = Aws::String>
42 EnableFederationResult& WithEventDataStoreArn(EventDataStoreArnT&& value) {
43 SetEventDataStoreArn(std::forward<EventDataStoreArnT>(value));
44 return *this;
45 }
47
49
52 inline FederationStatus GetFederationStatus() const { return m_federationStatus; }
54 m_federationStatusHasBeenSet = true;
55 m_federationStatus = value;
56 }
59 return *this;
60 }
62
64
67 inline const Aws::String& GetFederationRoleArn() const { return m_federationRoleArn; }
68 template <typename FederationRoleArnT = Aws::String>
69 void SetFederationRoleArn(FederationRoleArnT&& value) {
70 m_federationRoleArnHasBeenSet = true;
71 m_federationRoleArn = std::forward<FederationRoleArnT>(value);
72 }
73 template <typename FederationRoleArnT = Aws::String>
74 EnableFederationResult& WithFederationRoleArn(FederationRoleArnT&& value) {
75 SetFederationRoleArn(std::forward<FederationRoleArnT>(value));
76 return *this;
77 }
79
81
82 inline const Aws::String& GetRequestId() const { return m_requestId; }
83 template <typename RequestIdT = Aws::String>
84 void SetRequestId(RequestIdT&& value) {
85 m_requestIdHasBeenSet = true;
86 m_requestId = std::forward<RequestIdT>(value);
87 }
88 template <typename RequestIdT = Aws::String>
90 SetRequestId(std::forward<RequestIdT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_eventDataStoreArn;
96
98
99 Aws::String m_federationRoleArn;
100
101 Aws::String m_requestId;
102 bool m_eventDataStoreArnHasBeenSet = false;
103 bool m_federationStatusHasBeenSet = false;
104 bool m_federationRoleArnHasBeenSet = false;
105 bool m_requestIdHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace CloudTrail
110} // namespace Aws
AWS_CLOUDTRAIL_API EnableFederationResult()=default
EnableFederationResult & WithRequestId(RequestIdT &&value)
EnableFederationResult & WithFederationStatus(FederationStatus value)
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