136 lines
4.3 KiB
C++
136 lines
4.3 KiB
C++
/**
|
|
* 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 imagebuilder
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_IMAGEBUILDER_API PutImageRecipePolicyRequest : public ImagebuilderRequest
|
|
{
|
|
public:
|
|
PutImageRecipePolicyRequest();
|
|
|
|
// 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 "PutImageRecipePolicy"; }
|
|
|
|
Aws::String SerializePayload() const override;
|
|
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the image recipe that this policy should be
|
|
* applied to. </p>
|
|
*/
|
|
inline const Aws::String& GetImageRecipeArn() const{ return m_imageRecipeArn; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the image recipe that this policy should be
|
|
* applied to. </p>
|
|
*/
|
|
inline bool ImageRecipeArnHasBeenSet() const { return m_imageRecipeArnHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the image recipe that this policy should be
|
|
* applied to. </p>
|
|
*/
|
|
inline void SetImageRecipeArn(const Aws::String& value) { m_imageRecipeArnHasBeenSet = true; m_imageRecipeArn = value; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the image recipe that this policy should be
|
|
* applied to. </p>
|
|
*/
|
|
inline void SetImageRecipeArn(Aws::String&& value) { m_imageRecipeArnHasBeenSet = true; m_imageRecipeArn = std::move(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the image recipe that this policy should be
|
|
* applied to. </p>
|
|
*/
|
|
inline void SetImageRecipeArn(const char* value) { m_imageRecipeArnHasBeenSet = true; m_imageRecipeArn.assign(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the image recipe that this policy should be
|
|
* applied to. </p>
|
|
*/
|
|
inline PutImageRecipePolicyRequest& WithImageRecipeArn(const Aws::String& value) { SetImageRecipeArn(value); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the image recipe that this policy should be
|
|
* applied to. </p>
|
|
*/
|
|
inline PutImageRecipePolicyRequest& WithImageRecipeArn(Aws::String&& value) { SetImageRecipeArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the image recipe that this policy should be
|
|
* applied to. </p>
|
|
*/
|
|
inline PutImageRecipePolicyRequest& WithImageRecipeArn(const char* value) { SetImageRecipeArn(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The policy to apply. </p>
|
|
*/
|
|
inline const Aws::String& GetPolicy() const{ return m_policy; }
|
|
|
|
/**
|
|
* <p>The policy to apply. </p>
|
|
*/
|
|
inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The policy to apply. </p>
|
|
*/
|
|
inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
|
|
|
|
/**
|
|
* <p>The policy to apply. </p>
|
|
*/
|
|
inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
|
|
|
|
/**
|
|
* <p>The policy to apply. </p>
|
|
*/
|
|
inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
|
|
|
|
/**
|
|
* <p>The policy to apply. </p>
|
|
*/
|
|
inline PutImageRecipePolicyRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
|
|
|
|
/**
|
|
* <p>The policy to apply. </p>
|
|
*/
|
|
inline PutImageRecipePolicyRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The policy to apply. </p>
|
|
*/
|
|
inline PutImageRecipePolicyRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_imageRecipeArn;
|
|
bool m_imageRecipeArnHasBeenSet;
|
|
|
|
Aws::String m_policy;
|
|
bool m_policyHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace imagebuilder
|
|
} // namespace Aws
|