AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PutImageRecipePolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/imagebuilder/ImagebuilderRequest.h>
9#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace imagebuilder {
15namespace Model {
16
20 public:
21 AWS_IMAGEBUILDER_API PutImageRecipePolicyRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "PutImageRecipePolicy"; }
28
29 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
30
32
36 inline const Aws::String& GetImageRecipeArn() const { return m_imageRecipeArn; }
37 inline bool ImageRecipeArnHasBeenSet() const { return m_imageRecipeArnHasBeenSet; }
38 template <typename ImageRecipeArnT = Aws::String>
39 void SetImageRecipeArn(ImageRecipeArnT&& value) {
40 m_imageRecipeArnHasBeenSet = true;
41 m_imageRecipeArn = std::forward<ImageRecipeArnT>(value);
42 }
43 template <typename ImageRecipeArnT = Aws::String>
45 SetImageRecipeArn(std::forward<ImageRecipeArnT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetPolicy() const { return m_policy; }
55 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
56 template <typename PolicyT = Aws::String>
57 void SetPolicy(PolicyT&& value) {
58 m_policyHasBeenSet = true;
59 m_policy = std::forward<PolicyT>(value);
60 }
61 template <typename PolicyT = Aws::String>
63 SetPolicy(std::forward<PolicyT>(value));
64 return *this;
65 }
67 private:
68 Aws::String m_imageRecipeArn;
69
70 Aws::String m_policy;
71 bool m_imageRecipeArnHasBeenSet = false;
72 bool m_policyHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace imagebuilder
77} // namespace Aws
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
AWS_IMAGEBUILDER_API PutImageRecipePolicyRequest()=default
PutImageRecipePolicyRequest & WithPolicy(PolicyT &&value)
PutImageRecipePolicyRequest & WithImageRecipeArn(ImageRecipeArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String