/** * 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 Http { class URI; } //namespace Http namespace imagebuilder { namespace Model { /** */ class GetImagePolicyRequest : public ImagebuilderRequest { public: AWS_IMAGEBUILDER_API GetImagePolicyRequest(); // 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 "GetImagePolicy"; } AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override; AWS_IMAGEBUILDER_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The Amazon Resource Name (ARN) of the image whose policy you want to * retrieve.

*/ inline const Aws::String& GetImageArn() const{ return m_imageArn; } /** *

The Amazon Resource Name (ARN) of the image whose policy you want to * retrieve.

*/ inline bool ImageArnHasBeenSet() const { return m_imageArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the image whose policy you want to * retrieve.

*/ inline void SetImageArn(const Aws::String& value) { m_imageArnHasBeenSet = true; m_imageArn = value; } /** *

The Amazon Resource Name (ARN) of the image whose policy you want to * retrieve.

*/ inline void SetImageArn(Aws::String&& value) { m_imageArnHasBeenSet = true; m_imageArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the image whose policy you want to * retrieve.

*/ inline void SetImageArn(const char* value) { m_imageArnHasBeenSet = true; m_imageArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the image whose policy you want to * retrieve.

*/ inline GetImagePolicyRequest& WithImageArn(const Aws::String& value) { SetImageArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the image whose policy you want to * retrieve.

*/ inline GetImagePolicyRequest& WithImageArn(Aws::String&& value) { SetImageArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the image whose policy you want to * retrieve.

*/ inline GetImagePolicyRequest& WithImageArn(const char* value) { SetImageArn(value); return *this;} private: Aws::String m_imageArn; bool m_imageArnHasBeenSet = false; }; } // namespace Model } // namespace imagebuilder } // namespace Aws