/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The Amazon Web Services account that a partner event source has been offered
* to.See Also:
AWS
* API Reference
The Amazon Web Services account ID that the partner event source was offered * to.
*/ inline const Aws::String& GetAccount() const{ return m_account; } /** *The Amazon Web Services account ID that the partner event source was offered * to.
*/ inline bool AccountHasBeenSet() const { return m_accountHasBeenSet; } /** *The Amazon Web Services account ID that the partner event source was offered * to.
*/ inline void SetAccount(const Aws::String& value) { m_accountHasBeenSet = true; m_account = value; } /** *The Amazon Web Services account ID that the partner event source was offered * to.
*/ inline void SetAccount(Aws::String&& value) { m_accountHasBeenSet = true; m_account = std::move(value); } /** *The Amazon Web Services account ID that the partner event source was offered * to.
*/ inline void SetAccount(const char* value) { m_accountHasBeenSet = true; m_account.assign(value); } /** *The Amazon Web Services account ID that the partner event source was offered * to.
*/ inline PartnerEventSourceAccount& WithAccount(const Aws::String& value) { SetAccount(value); return *this;} /** *The Amazon Web Services account ID that the partner event source was offered * to.
*/ inline PartnerEventSourceAccount& WithAccount(Aws::String&& value) { SetAccount(std::move(value)); return *this;} /** *The Amazon Web Services account ID that the partner event source was offered * to.
*/ inline PartnerEventSourceAccount& WithAccount(const char* value) { SetAccount(value); return *this;} /** *The date and time the event source was created.
*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *The date and time the event source was created.
*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *The date and time the event source was created.
*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *The date and time the event source was created.
*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *The date and time the event source was created.
*/ inline PartnerEventSourceAccount& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *The date and time the event source was created.
*/ inline PartnerEventSourceAccount& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *The date and time that the event source will expire, if the Amazon Web * Services account doesn't create a matching event bus for it.
*/ inline const Aws::Utils::DateTime& GetExpirationTime() const{ return m_expirationTime; } /** *The date and time that the event source will expire, if the Amazon Web * Services account doesn't create a matching event bus for it.
*/ inline bool ExpirationTimeHasBeenSet() const { return m_expirationTimeHasBeenSet; } /** *The date and time that the event source will expire, if the Amazon Web * Services account doesn't create a matching event bus for it.
*/ inline void SetExpirationTime(const Aws::Utils::DateTime& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = value; } /** *The date and time that the event source will expire, if the Amazon Web * Services account doesn't create a matching event bus for it.
*/ inline void SetExpirationTime(Aws::Utils::DateTime&& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = std::move(value); } /** *The date and time that the event source will expire, if the Amazon Web * Services account doesn't create a matching event bus for it.
*/ inline PartnerEventSourceAccount& WithExpirationTime(const Aws::Utils::DateTime& value) { SetExpirationTime(value); return *this;} /** *The date and time that the event source will expire, if the Amazon Web * Services account doesn't create a matching event bus for it.
*/ inline PartnerEventSourceAccount& WithExpirationTime(Aws::Utils::DateTime&& value) { SetExpirationTime(std::move(value)); return *this;} /** *The state of the event source. If it is ACTIVE, you have already created a * matching event bus for this event source, and that event bus is active. If it is * PENDING, either you haven't yet created a matching event bus, or that event bus * is deactivated. If it is DELETED, you have created a matching event bus, but the * event source has since been deleted.
*/ inline const EventSourceState& GetState() const{ return m_state; } /** *The state of the event source. If it is ACTIVE, you have already created a * matching event bus for this event source, and that event bus is active. If it is * PENDING, either you haven't yet created a matching event bus, or that event bus * is deactivated. If it is DELETED, you have created a matching event bus, but the * event source has since been deleted.
*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *The state of the event source. If it is ACTIVE, you have already created a * matching event bus for this event source, and that event bus is active. If it is * PENDING, either you haven't yet created a matching event bus, or that event bus * is deactivated. If it is DELETED, you have created a matching event bus, but the * event source has since been deleted.
*/ inline void SetState(const EventSourceState& value) { m_stateHasBeenSet = true; m_state = value; } /** *The state of the event source. If it is ACTIVE, you have already created a * matching event bus for this event source, and that event bus is active. If it is * PENDING, either you haven't yet created a matching event bus, or that event bus * is deactivated. If it is DELETED, you have created a matching event bus, but the * event source has since been deleted.
*/ inline void SetState(EventSourceState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *The state of the event source. If it is ACTIVE, you have already created a * matching event bus for this event source, and that event bus is active. If it is * PENDING, either you haven't yet created a matching event bus, or that event bus * is deactivated. If it is DELETED, you have created a matching event bus, but the * event source has since been deleted.
*/ inline PartnerEventSourceAccount& WithState(const EventSourceState& value) { SetState(value); return *this;} /** *The state of the event source. If it is ACTIVE, you have already created a * matching event bus for this event source, and that event bus is active. If it is * PENDING, either you haven't yet created a matching event bus, or that event bus * is deactivated. If it is DELETED, you have created a matching event bus, but the * event source has since been deleted.
*/ inline PartnerEventSourceAccount& WithState(EventSourceState&& value) { SetState(std::move(value)); return *this;} private: Aws::String m_account; bool m_accountHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; Aws::Utils::DateTime m_expirationTime; bool m_expirationTimeHasBeenSet = false; EventSourceState m_state; bool m_stateHasBeenSet = false; }; } // namespace Model } // namespace EventBridge } // namespace Aws