/**
* 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 partner event source.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The ARN of the partner event source.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The ARN of the partner event source.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The ARN of the partner event source.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The ARN of the partner event source.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The ARN of the partner event source.
*/ inline PartnerEventSource& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The ARN of the partner event source.
*/ inline PartnerEventSource& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The ARN of the partner event source.
*/ inline PartnerEventSource& WithArn(const char* value) { SetArn(value); return *this;} /** *The name of the partner event source.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the partner event source.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the partner event source.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the partner event source.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the partner event source.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the partner event source.
*/ inline PartnerEventSource& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the partner event source.
*/ inline PartnerEventSource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the partner event source.
*/ inline PartnerEventSource& WithName(const char* value) { SetName(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchEvents } // namespace Aws