AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAccount(const Aws::String& value) { m_accountHasBeenSet = true; m_account = value; }
51 inline void SetAccount(Aws::String&& value) { m_accountHasBeenSet = true; m_account = std::move(value); }
52 inline void SetAccount(const char* value) { m_accountHasBeenSet = true; m_account.assign(value); }
53 inline PartnerEventSourceAccount& WithAccount(const Aws::String& value) { SetAccount(value); return *this;}
54 inline PartnerEventSourceAccount& WithAccount(Aws::String&& value) { SetAccount(std::move(value)); return *this;}
55 inline PartnerEventSourceAccount& WithAccount(const char* value) { SetAccount(value); return *this;}
57
59
62 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
63 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
64 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
65 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
67 inline PartnerEventSourceAccount& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
69
71
75 inline const Aws::Utils::DateTime& GetExpirationTime() const{ return m_expirationTime; }
76 inline bool ExpirationTimeHasBeenSet() const { return m_expirationTimeHasBeenSet; }
77 inline void SetExpirationTime(const Aws::Utils::DateTime& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = value; }
78 inline void SetExpirationTime(Aws::Utils::DateTime&& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = std::move(value); }
80 inline PartnerEventSourceAccount& WithExpirationTime(Aws::Utils::DateTime&& value) { SetExpirationTime(std::move(value)); return *this;}
82
84
91 inline const EventSourceState& GetState() const{ return m_state; }
92 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
93 inline void SetState(const EventSourceState& value) { m_stateHasBeenSet = true; m_state = value; }
94 inline void SetState(EventSourceState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
95 inline PartnerEventSourceAccount& WithState(const EventSourceState& value) { SetState(value); return *this;}
96 inline PartnerEventSourceAccount& WithState(EventSourceState&& value) { SetState(std::move(value)); return *this;}
98 private:
99
100 Aws::String m_account;
101 bool m_accountHasBeenSet = false;
102
103 Aws::Utils::DateTime m_creationTime;
104 bool m_creationTimeHasBeenSet = false;
105
106 Aws::Utils::DateTime m_expirationTime;
107 bool m_expirationTimeHasBeenSet = false;
108
109 EventSourceState m_state;
110 bool m_stateHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace EventBridge
115} // namespace Aws
PartnerEventSourceAccount & WithExpirationTime(Aws::Utils::DateTime &&value)
PartnerEventSourceAccount & WithState(const EventSourceState &value)
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
PartnerEventSourceAccount & WithCreationTime(Aws::Utils::DateTime &&value)
PartnerEventSourceAccount & WithCreationTime(const Aws::Utils::DateTime &value)
PartnerEventSourceAccount & WithAccount(const char *value)
PartnerEventSourceAccount & WithExpirationTime(const Aws::Utils::DateTime &value)
void SetExpirationTime(const Aws::Utils::DateTime &value)
void SetCreationTime(const Aws::Utils::DateTime &value)
PartnerEventSourceAccount & WithAccount(const Aws::String &value)
PartnerEventSourceAccount & WithState(EventSourceState &&value)
PartnerEventSourceAccount & WithAccount(Aws::String &&value)
AWS_EVENTBRIDGE_API PartnerEventSourceAccount & operator=(Aws::Utils::Json::JsonView jsonValue)
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