/** * 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 CloudFormation { namespace Model { /** *

The input for the GetStackPolicy action.

See Also:

AWS * API Reference

*/ class AWS_CLOUDFORMATION_API GetStackPolicyRequest : public CloudFormationRequest { public: GetStackPolicyRequest(); // 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 "GetStackPolicy"; } Aws::String SerializePayload() const override; protected: void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The name or unique stack ID that is associated with the stack whose policy * you want to get.

*/ inline const Aws::String& GetStackName() const{ return m_stackName; } /** *

The name or unique stack ID that is associated with the stack whose policy * you want to get.

*/ inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; } /** *

The name or unique stack ID that is associated with the stack whose policy * you want to get.

*/ inline void SetStackName(const Aws::String& value) { m_stackNameHasBeenSet = true; m_stackName = value; } /** *

The name or unique stack ID that is associated with the stack whose policy * you want to get.

*/ inline void SetStackName(Aws::String&& value) { m_stackNameHasBeenSet = true; m_stackName = std::move(value); } /** *

The name or unique stack ID that is associated with the stack whose policy * you want to get.

*/ inline void SetStackName(const char* value) { m_stackNameHasBeenSet = true; m_stackName.assign(value); } /** *

The name or unique stack ID that is associated with the stack whose policy * you want to get.

*/ inline GetStackPolicyRequest& WithStackName(const Aws::String& value) { SetStackName(value); return *this;} /** *

The name or unique stack ID that is associated with the stack whose policy * you want to get.

*/ inline GetStackPolicyRequest& WithStackName(Aws::String&& value) { SetStackName(std::move(value)); return *this;} /** *

The name or unique stack ID that is associated with the stack whose policy * you want to get.

*/ inline GetStackPolicyRequest& WithStackName(const char* value) { SetStackName(value); return *this;} private: Aws::String m_stackName; bool m_stackNameHasBeenSet; }; } // namespace Model } // namespace CloudFormation } // namespace Aws