/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A partner event source is created by an SaaS partner. If a customer creates a
* partner event bus that matches this event source, that Amazon Web Services
* account can receive events from the partner's applications or
* services.See Also:
AWS
* API Reference
The ARN of the event source.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The ARN of the event source.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The ARN of the event source.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The ARN of the event source.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The ARN of the event source.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The ARN of the event source.
*/ inline EventSource& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The ARN of the event source.
*/ inline EventSource& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The ARN of the event source.
*/ inline EventSource& WithArn(const char* value) { SetArn(value); return *this;} /** *The name of the partner that created the event source.
*/ inline const Aws::String& GetCreatedBy() const{ return m_createdBy; } /** *The name of the partner that created the event source.
*/ inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; } /** *The name of the partner that created the event source.
*/ inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; } /** *The name of the partner that created the event source.
*/ inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); } /** *The name of the partner that created the event source.
*/ inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); } /** *The name of the partner that created the event source.
*/ inline EventSource& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;} /** *The name of the partner that created the event source.
*/ inline EventSource& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;} /** *The name of the partner that created the event source.
*/ inline EventSource& WithCreatedBy(const char* value) { SetCreatedBy(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 EventSource& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *The date and time the event source was created.
*/ inline EventSource& 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 EventSource& 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 EventSource& WithExpirationTime(Aws::Utils::DateTime&& value) { SetExpirationTime(std::move(value)); return *this;} /** *The name of the event source.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the event source.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the event source.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the event source.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the event source.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the event source.
*/ inline EventSource& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the event source.
*/ inline EventSource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the event source.
*/ inline EventSource& WithName(const char* value) { SetName(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 EventSource& 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 EventSource& WithState(EventSourceState&& value) { SetState(std::move(value)); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_createdBy; bool m_createdByHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; Aws::Utils::DateTime m_expirationTime; bool m_expirationTimeHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; EventSourceState m_state; bool m_stateHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchEvents } // namespace Aws