/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace OAM { namespace Model { /** */ class GetSinkPolicyRequest : public OAMRequest { public: AWS_OAM_API GetSinkPolicyRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GetSinkPolicy"; } AWS_OAM_API Aws::String SerializePayload() const override; /** *

The ARN of the sink to retrieve the policy of.

*/ inline const Aws::String& GetSinkIdentifier() const{ return m_sinkIdentifier; } /** *

The ARN of the sink to retrieve the policy of.

*/ inline bool SinkIdentifierHasBeenSet() const { return m_sinkIdentifierHasBeenSet; } /** *

The ARN of the sink to retrieve the policy of.

*/ inline void SetSinkIdentifier(const Aws::String& value) { m_sinkIdentifierHasBeenSet = true; m_sinkIdentifier = value; } /** *

The ARN of the sink to retrieve the policy of.

*/ inline void SetSinkIdentifier(Aws::String&& value) { m_sinkIdentifierHasBeenSet = true; m_sinkIdentifier = std::move(value); } /** *

The ARN of the sink to retrieve the policy of.

*/ inline void SetSinkIdentifier(const char* value) { m_sinkIdentifierHasBeenSet = true; m_sinkIdentifier.assign(value); } /** *

The ARN of the sink to retrieve the policy of.

*/ inline GetSinkPolicyRequest& WithSinkIdentifier(const Aws::String& value) { SetSinkIdentifier(value); return *this;} /** *

The ARN of the sink to retrieve the policy of.

*/ inline GetSinkPolicyRequest& WithSinkIdentifier(Aws::String&& value) { SetSinkIdentifier(std::move(value)); return *this;} /** *

The ARN of the sink to retrieve the policy of.

*/ inline GetSinkPolicyRequest& WithSinkIdentifier(const char* value) { SetSinkIdentifier(value); return *this;} private: Aws::String m_sinkIdentifier; bool m_sinkIdentifierHasBeenSet = false; }; } // namespace Model } // namespace OAM } // namespace Aws