/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace EventBridge { namespace Model { class DescribeEventBusResult { public: AWS_EVENTBRIDGE_API DescribeEventBusResult(); AWS_EVENTBRIDGE_API DescribeEventBusResult(const Aws::AmazonWebServiceResult& result); AWS_EVENTBRIDGE_API DescribeEventBusResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The name of the event bus. Currently, this is always * default.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the event bus. Currently, this is always * default.

*/ inline void SetName(const Aws::String& value) { m_name = value; } /** *

The name of the event bus. Currently, this is always * default.

*/ inline void SetName(Aws::String&& value) { m_name = std::move(value); } /** *

The name of the event bus. Currently, this is always * default.

*/ inline void SetName(const char* value) { m_name.assign(value); } /** *

The name of the event bus. Currently, this is always * default.

*/ inline DescribeEventBusResult& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the event bus. Currently, this is always * default.

*/ inline DescribeEventBusResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the event bus. Currently, this is always * default.

*/ inline DescribeEventBusResult& WithName(const char* value) { SetName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the account permitted to write events to * the current account.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the account permitted to write events to * the current account.

*/ inline void SetArn(const Aws::String& value) { m_arn = value; } /** *

The Amazon Resource Name (ARN) of the account permitted to write events to * the current account.

*/ inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the account permitted to write events to * the current account.

*/ inline void SetArn(const char* value) { m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the account permitted to write events to * the current account.

*/ inline DescribeEventBusResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the account permitted to write events to * the current account.

*/ inline DescribeEventBusResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the account permitted to write events to * the current account.

*/ inline DescribeEventBusResult& WithArn(const char* value) { SetArn(value); return *this;} /** *

The policy that enables the external account to send events to your * account.

*/ inline const Aws::String& GetPolicy() const{ return m_policy; } /** *

The policy that enables the external account to send events to your * account.

*/ inline void SetPolicy(const Aws::String& value) { m_policy = value; } /** *

The policy that enables the external account to send events to your * account.

*/ inline void SetPolicy(Aws::String&& value) { m_policy = std::move(value); } /** *

The policy that enables the external account to send events to your * account.

*/ inline void SetPolicy(const char* value) { m_policy.assign(value); } /** *

The policy that enables the external account to send events to your * account.

*/ inline DescribeEventBusResult& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;} /** *

The policy that enables the external account to send events to your * account.

*/ inline DescribeEventBusResult& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;} /** *

The policy that enables the external account to send events to your * account.

*/ inline DescribeEventBusResult& WithPolicy(const char* value) { SetPolicy(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeEventBusResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeEventBusResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeEventBusResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_name; Aws::String m_arn; Aws::String m_policy; Aws::String m_requestId; }; } // namespace Model } // namespace EventBridge } // namespace Aws