/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The association of a datashare from a producer account with a data consumer.
* See Also:
AWS
* API Reference
The name of the consumer accounts that have an association with a producer * datashare.
*/ inline const Aws::String& GetConsumerIdentifier() const{ return m_consumerIdentifier; } /** *The name of the consumer accounts that have an association with a producer * datashare.
*/ inline bool ConsumerIdentifierHasBeenSet() const { return m_consumerIdentifierHasBeenSet; } /** *The name of the consumer accounts that have an association with a producer * datashare.
*/ inline void SetConsumerIdentifier(const Aws::String& value) { m_consumerIdentifierHasBeenSet = true; m_consumerIdentifier = value; } /** *The name of the consumer accounts that have an association with a producer * datashare.
*/ inline void SetConsumerIdentifier(Aws::String&& value) { m_consumerIdentifierHasBeenSet = true; m_consumerIdentifier = std::move(value); } /** *The name of the consumer accounts that have an association with a producer * datashare.
*/ inline void SetConsumerIdentifier(const char* value) { m_consumerIdentifierHasBeenSet = true; m_consumerIdentifier.assign(value); } /** *The name of the consumer accounts that have an association with a producer * datashare.
*/ inline DataShareAssociation& WithConsumerIdentifier(const Aws::String& value) { SetConsumerIdentifier(value); return *this;} /** *The name of the consumer accounts that have an association with a producer * datashare.
*/ inline DataShareAssociation& WithConsumerIdentifier(Aws::String&& value) { SetConsumerIdentifier(std::move(value)); return *this;} /** *The name of the consumer accounts that have an association with a producer * datashare.
*/ inline DataShareAssociation& WithConsumerIdentifier(const char* value) { SetConsumerIdentifier(value); return *this;} /** *The status of the datashare that is associated.
*/ inline const DataShareStatus& GetStatus() const{ return m_status; } /** *The status of the datashare that is associated.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The status of the datashare that is associated.
*/ inline void SetStatus(const DataShareStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *The status of the datashare that is associated.
*/ inline void SetStatus(DataShareStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The status of the datashare that is associated.
*/ inline DataShareAssociation& WithStatus(const DataShareStatus& value) { SetStatus(value); return *this;} /** *The status of the datashare that is associated.
*/ inline DataShareAssociation& WithStatus(DataShareStatus&& value) { SetStatus(std::move(value)); return *this;} /** *The Amazon Web Services Region of the consumer accounts that have an * association with a producer datashare.
*/ inline const Aws::String& GetConsumerRegion() const{ return m_consumerRegion; } /** *The Amazon Web Services Region of the consumer accounts that have an * association with a producer datashare.
*/ inline bool ConsumerRegionHasBeenSet() const { return m_consumerRegionHasBeenSet; } /** *The Amazon Web Services Region of the consumer accounts that have an * association with a producer datashare.
*/ inline void SetConsumerRegion(const Aws::String& value) { m_consumerRegionHasBeenSet = true; m_consumerRegion = value; } /** *The Amazon Web Services Region of the consumer accounts that have an * association with a producer datashare.
*/ inline void SetConsumerRegion(Aws::String&& value) { m_consumerRegionHasBeenSet = true; m_consumerRegion = std::move(value); } /** *The Amazon Web Services Region of the consumer accounts that have an * association with a producer datashare.
*/ inline void SetConsumerRegion(const char* value) { m_consumerRegionHasBeenSet = true; m_consumerRegion.assign(value); } /** *The Amazon Web Services Region of the consumer accounts that have an * association with a producer datashare.
*/ inline DataShareAssociation& WithConsumerRegion(const Aws::String& value) { SetConsumerRegion(value); return *this;} /** *The Amazon Web Services Region of the consumer accounts that have an * association with a producer datashare.
*/ inline DataShareAssociation& WithConsumerRegion(Aws::String&& value) { SetConsumerRegion(std::move(value)); return *this;} /** *The Amazon Web Services Region of the consumer accounts that have an * association with a producer datashare.
*/ inline DataShareAssociation& WithConsumerRegion(const char* value) { SetConsumerRegion(value); return *this;} /** *The creation date of the datashare that is associated.
*/ inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; } /** *The creation date of the datashare that is associated.
*/ inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; } /** *The creation date of the datashare that is associated.
*/ inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; } /** *The creation date of the datashare that is associated.
*/ inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); } /** *The creation date of the datashare that is associated.
*/ inline DataShareAssociation& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;} /** *The creation date of the datashare that is associated.
*/ inline DataShareAssociation& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;} /** *The status change data of the datashare that is associated.
*/ inline const Aws::Utils::DateTime& GetStatusChangeDate() const{ return m_statusChangeDate; } /** *The status change data of the datashare that is associated.
*/ inline bool StatusChangeDateHasBeenSet() const { return m_statusChangeDateHasBeenSet; } /** *The status change data of the datashare that is associated.
*/ inline void SetStatusChangeDate(const Aws::Utils::DateTime& value) { m_statusChangeDateHasBeenSet = true; m_statusChangeDate = value; } /** *The status change data of the datashare that is associated.
*/ inline void SetStatusChangeDate(Aws::Utils::DateTime&& value) { m_statusChangeDateHasBeenSet = true; m_statusChangeDate = std::move(value); } /** *The status change data of the datashare that is associated.
*/ inline DataShareAssociation& WithStatusChangeDate(const Aws::Utils::DateTime& value) { SetStatusChangeDate(value); return *this;} /** *The status change data of the datashare that is associated.
*/ inline DataShareAssociation& WithStatusChangeDate(Aws::Utils::DateTime&& value) { SetStatusChangeDate(std::move(value)); return *this;} private: Aws::String m_consumerIdentifier; bool m_consumerIdentifierHasBeenSet = false; DataShareStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_consumerRegion; bool m_consumerRegionHasBeenSet = false; Aws::Utils::DateTime m_createdDate; bool m_createdDateHasBeenSet = false; Aws::Utils::DateTime m_statusChangeDate; bool m_statusChangeDateHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws