AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
PartnerEventSourceAccount.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/eventbridge/EventBridge_EXPORTS.h>
10#include <aws/eventbridge/model/EventSourceState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace EventBridge {
22namespace Model {
23
31 public:
32 AWS_EVENTBRIDGE_API PartnerEventSourceAccount() = default;
35 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetAccount() const { return m_account; }
43 inline bool AccountHasBeenSet() const { return m_accountHasBeenSet; }
44 template <typename AccountT = Aws::String>
45 void SetAccount(AccountT&& value) {
46 m_accountHasBeenSet = true;
47 m_account = std::forward<AccountT>(value);
48 }
49 template <typename AccountT = Aws::String>
51 SetAccount(std::forward<AccountT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
61 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
62 template <typename CreationTimeT = Aws::Utils::DateTime>
63 void SetCreationTime(CreationTimeT&& value) {
64 m_creationTimeHasBeenSet = true;
65 m_creationTime = std::forward<CreationTimeT>(value);
66 }
67 template <typename CreationTimeT = Aws::Utils::DateTime>
69 SetCreationTime(std::forward<CreationTimeT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::Utils::DateTime& GetExpirationTime() const { return m_expirationTime; }
80 inline bool ExpirationTimeHasBeenSet() const { return m_expirationTimeHasBeenSet; }
81 template <typename ExpirationTimeT = Aws::Utils::DateTime>
82 void SetExpirationTime(ExpirationTimeT&& value) {
83 m_expirationTimeHasBeenSet = true;
84 m_expirationTime = std::forward<ExpirationTimeT>(value);
85 }
86 template <typename ExpirationTimeT = Aws::Utils::DateTime>
88 SetExpirationTime(std::forward<ExpirationTimeT>(value));
89 return *this;
90 }
92
94
101 inline EventSourceState GetState() const { return m_state; }
102 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
103 inline void SetState(EventSourceState value) {
104 m_stateHasBeenSet = true;
105 m_state = value;
106 }
108 SetState(value);
109 return *this;
110 }
112 private:
113 Aws::String m_account;
114
115 Aws::Utils::DateTime m_creationTime{};
116
117 Aws::Utils::DateTime m_expirationTime{};
118
120 bool m_accountHasBeenSet = false;
121 bool m_creationTimeHasBeenSet = false;
122 bool m_expirationTimeHasBeenSet = false;
123 bool m_stateHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace EventBridge
128} // namespace Aws
AWS_EVENTBRIDGE_API PartnerEventSourceAccount()=default
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
PartnerEventSourceAccount & WithAccount(AccountT &&value)
PartnerEventSourceAccount & WithState(EventSourceState value)
AWS_EVENTBRIDGE_API PartnerEventSourceAccount & operator=(Aws::Utils::Json::JsonView jsonValue)
PartnerEventSourceAccount & WithExpirationTime(ExpirationTimeT &&value)
PartnerEventSourceAccount & WithCreationTime(CreationTimeT &&value)
AWS_EVENTBRIDGE_API PartnerEventSourceAccount(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue