/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about the targets specified for a notification
* rule.See Also:
AWS
* API Reference
The Amazon Resource Name (ARN) of the SNS topic.
*/ inline const Aws::String& GetTargetAddress() const{ return m_targetAddress; } /** *The Amazon Resource Name (ARN) of the SNS topic.
*/ inline bool TargetAddressHasBeenSet() const { return m_targetAddressHasBeenSet; } /** *The Amazon Resource Name (ARN) of the SNS topic.
*/ inline void SetTargetAddress(const Aws::String& value) { m_targetAddressHasBeenSet = true; m_targetAddress = value; } /** *The Amazon Resource Name (ARN) of the SNS topic.
*/ inline void SetTargetAddress(Aws::String&& value) { m_targetAddressHasBeenSet = true; m_targetAddress = std::move(value); } /** *The Amazon Resource Name (ARN) of the SNS topic.
*/ inline void SetTargetAddress(const char* value) { m_targetAddressHasBeenSet = true; m_targetAddress.assign(value); } /** *The Amazon Resource Name (ARN) of the SNS topic.
*/ inline TargetSummary& WithTargetAddress(const Aws::String& value) { SetTargetAddress(value); return *this;} /** *The Amazon Resource Name (ARN) of the SNS topic.
*/ inline TargetSummary& WithTargetAddress(Aws::String&& value) { SetTargetAddress(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the SNS topic.
*/ inline TargetSummary& WithTargetAddress(const char* value) { SetTargetAddress(value); return *this;} /** *The type of the target (for example, SNS).
*/ inline const Aws::String& GetTargetType() const{ return m_targetType; } /** *The type of the target (for example, SNS).
*/ inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; } /** *The type of the target (for example, SNS).
*/ inline void SetTargetType(const Aws::String& value) { m_targetTypeHasBeenSet = true; m_targetType = value; } /** *The type of the target (for example, SNS).
*/ inline void SetTargetType(Aws::String&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); } /** *The type of the target (for example, SNS).
*/ inline void SetTargetType(const char* value) { m_targetTypeHasBeenSet = true; m_targetType.assign(value); } /** *The type of the target (for example, SNS).
*/ inline TargetSummary& WithTargetType(const Aws::String& value) { SetTargetType(value); return *this;} /** *The type of the target (for example, SNS).
*/ inline TargetSummary& WithTargetType(Aws::String&& value) { SetTargetType(std::move(value)); return *this;} /** *The type of the target (for example, SNS).
*/ inline TargetSummary& WithTargetType(const char* value) { SetTargetType(value); return *this;} /** *The status of the target.
*/ inline const TargetStatus& GetTargetStatus() const{ return m_targetStatus; } /** *The status of the target.
*/ inline bool TargetStatusHasBeenSet() const { return m_targetStatusHasBeenSet; } /** *The status of the target.
*/ inline void SetTargetStatus(const TargetStatus& value) { m_targetStatusHasBeenSet = true; m_targetStatus = value; } /** *The status of the target.
*/ inline void SetTargetStatus(TargetStatus&& value) { m_targetStatusHasBeenSet = true; m_targetStatus = std::move(value); } /** *The status of the target.
*/ inline TargetSummary& WithTargetStatus(const TargetStatus& value) { SetTargetStatus(value); return *this;} /** *The status of the target.
*/ inline TargetSummary& WithTargetStatus(TargetStatus&& value) { SetTargetStatus(std::move(value)); return *this;} private: Aws::String m_targetAddress; bool m_targetAddressHasBeenSet; Aws::String m_targetType; bool m_targetTypeHasBeenSet; TargetStatus m_targetStatus; bool m_targetStatusHasBeenSet; }; } // namespace Model } // namespace CodeStarNotifications } // namespace Aws