AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PartnerEventSourceAccount.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{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace EventBridge
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_EVENTBRIDGE_API PartnerEventSourceAccount() = default;
40 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetAccount() const { return m_account; }
49 inline bool AccountHasBeenSet() const { return m_accountHasBeenSet; }
50 template<typename AccountT = Aws::String>
51 void SetAccount(AccountT&& value) { m_accountHasBeenSet = true; m_account = std::forward<AccountT>(value); }
52 template<typename AccountT = Aws::String>
53 PartnerEventSourceAccount& WithAccount(AccountT&& value) { SetAccount(std::forward<AccountT>(value)); return *this;}
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) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
64 template<typename CreationTimeT = Aws::Utils::DateTime>
65 PartnerEventSourceAccount& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
67
69
73 inline const Aws::Utils::DateTime& GetExpirationTime() const { return m_expirationTime; }
74 inline bool ExpirationTimeHasBeenSet() const { return m_expirationTimeHasBeenSet; }
75 template<typename ExpirationTimeT = Aws::Utils::DateTime>
76 void SetExpirationTime(ExpirationTimeT&& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = std::forward<ExpirationTimeT>(value); }
77 template<typename ExpirationTimeT = Aws::Utils::DateTime>
78 PartnerEventSourceAccount& WithExpirationTime(ExpirationTimeT&& value) { SetExpirationTime(std::forward<ExpirationTimeT>(value)); return *this;}
80
82
89 inline EventSourceState GetState() const { return m_state; }
90 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
91 inline void SetState(EventSourceState value) { m_stateHasBeenSet = true; m_state = value; }
92 inline PartnerEventSourceAccount& WithState(EventSourceState value) { SetState(value); return *this;}
94 private:
95
96 Aws::String m_account;
97 bool m_accountHasBeenSet = false;
98
99 Aws::Utils::DateTime m_creationTime{};
100 bool m_creationTimeHasBeenSet = false;
101
102 Aws::Utils::DateTime m_expirationTime{};
103 bool m_expirationTimeHasBeenSet = false;
104
106 bool m_stateHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace EventBridge
111} // 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