AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeEventSourceResult.h
1
6#pragma once
7#include <aws/eventbridge/EventBridge_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/eventbridge/model/EventSourceState.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace EventBridge
26{
27namespace Model
28{
30 {
31 public:
32 AWS_EVENTBRIDGE_API DescribeEventSourceResult() = default;
35
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 template<typename ArnT = Aws::String>
43 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
44 template<typename ArnT = Aws::String>
45 DescribeEventSourceResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
47
49
52 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
53 template<typename CreatedByT = Aws::String>
54 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
55 template<typename CreatedByT = Aws::String>
56 DescribeEventSourceResult& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
58
60
63 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
64 template<typename CreationTimeT = Aws::Utils::DateTime>
65 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
66 template<typename CreationTimeT = Aws::Utils::DateTime>
67 DescribeEventSourceResult& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
69
71
75 inline const Aws::Utils::DateTime& GetExpirationTime() const { return m_expirationTime; }
76 template<typename ExpirationTimeT = Aws::Utils::DateTime>
77 void SetExpirationTime(ExpirationTimeT&& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = std::forward<ExpirationTimeT>(value); }
78 template<typename ExpirationTimeT = Aws::Utils::DateTime>
79 DescribeEventSourceResult& WithExpirationTime(ExpirationTimeT&& value) { SetExpirationTime(std::forward<ExpirationTimeT>(value)); return *this;}
81
83
86 inline const Aws::String& GetName() const { return m_name; }
87 template<typename NameT = Aws::String>
88 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
89 template<typename NameT = Aws::String>
90 DescribeEventSourceResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
92
94
101 inline EventSourceState GetState() const { return m_state; }
102 inline void SetState(EventSourceState value) { m_stateHasBeenSet = true; m_state = value; }
103 inline DescribeEventSourceResult& WithState(EventSourceState value) { SetState(value); return *this;}
105
107
108 inline const Aws::String& GetRequestId() const { return m_requestId; }
109 template<typename RequestIdT = Aws::String>
110 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
111 template<typename RequestIdT = Aws::String>
112 DescribeEventSourceResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
114 private:
115
116 Aws::String m_arn;
117 bool m_arnHasBeenSet = false;
118
119 Aws::String m_createdBy;
120 bool m_createdByHasBeenSet = false;
121
122 Aws::Utils::DateTime m_creationTime{};
123 bool m_creationTimeHasBeenSet = false;
124
125 Aws::Utils::DateTime m_expirationTime{};
126 bool m_expirationTimeHasBeenSet = false;
127
128 Aws::String m_name;
129 bool m_nameHasBeenSet = false;
130
132 bool m_stateHasBeenSet = false;
133
134 Aws::String m_requestId;
135 bool m_requestIdHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace EventBridge
140} // namespace Aws
DescribeEventSourceResult & WithExpirationTime(ExpirationTimeT &&value)
DescribeEventSourceResult & WithCreationTime(CreationTimeT &&value)
DescribeEventSourceResult & WithArn(ArnT &&value)
DescribeEventSourceResult & WithState(EventSourceState value)
DescribeEventSourceResult & WithName(NameT &&value)
AWS_EVENTBRIDGE_API DescribeEventSourceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeEventSourceResult & WithCreatedBy(CreatedByT &&value)
DescribeEventSourceResult & WithRequestId(RequestIdT &&value)
AWS_EVENTBRIDGE_API DescribeEventSourceResult()=default
AWS_EVENTBRIDGE_API DescribeEventSourceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue