This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-imagebuilder/include/aws/imagebuilder/model/GetImagePolicyRequest.h

98 lines
2.9 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
#include <aws/imagebuilder/ImagebuilderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace imagebuilder
{
namespace Model
{
/**
*/
class AWS_IMAGEBUILDER_API GetImagePolicyRequest : public ImagebuilderRequest
{
public:
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::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>The Amazon Resource Name (ARN) of the image whose policy you want to
* retrieve. </p>
*/
inline const Aws::String& GetImageArn() const{ return m_imageArn; }
/**
* <p>The Amazon Resource Name (ARN) of the image whose policy you want to
* retrieve. </p>
*/
inline bool ImageArnHasBeenSet() const { return m_imageArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the image whose policy you want to
* retrieve. </p>
*/
inline void SetImageArn(const Aws::String& value) { m_imageArnHasBeenSet = true; m_imageArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the image whose policy you want to
* retrieve. </p>
*/
inline void SetImageArn(Aws::String&& value) { m_imageArnHasBeenSet = true; m_imageArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the image whose policy you want to
* retrieve. </p>
*/
inline void SetImageArn(const char* value) { m_imageArnHasBeenSet = true; m_imageArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the image whose policy you want to
* retrieve. </p>
*/
inline GetImagePolicyRequest& WithImageArn(const Aws::String& value) { SetImageArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the image whose policy you want to
* retrieve. </p>
*/
inline GetImagePolicyRequest& WithImageArn(Aws::String&& value) { SetImageArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the image whose policy you want to
* retrieve. </p>
*/
inline GetImagePolicyRequest& WithImageArn(const char* value) { SetImageArn(value); return *this;}
private:
Aws::String m_imageArn;
bool m_imageArnHasBeenSet;
};
} // namespace Model
} // namespace imagebuilder
} // namespace Aws