AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PutComponentPolicyRequest.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 PutComponentPolicyRequest() = 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 "PutComponentPolicy"; }
28
29 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
30
32
36 inline const Aws::String& GetComponentArn() const { return m_componentArn; }
37 inline bool ComponentArnHasBeenSet() const { return m_componentArnHasBeenSet; }
38 template <typename ComponentArnT = Aws::String>
39 void SetComponentArn(ComponentArnT&& value) {
40 m_componentArnHasBeenSet = true;
41 m_componentArn = std::forward<ComponentArnT>(value);
42 }
43 template <typename ComponentArnT = Aws::String>
45 SetComponentArn(std::forward<ComponentArnT>(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_componentArn;
69
70 Aws::String m_policy;
71 bool m_componentArnHasBeenSet = false;
72 bool m_policyHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace imagebuilder
77} // namespace Aws
PutComponentPolicyRequest & WithPolicy(PolicyT &&value)
virtual const char * GetServiceRequestName() const override
AWS_IMAGEBUILDER_API PutComponentPolicyRequest()=default
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
PutComponentPolicyRequest & WithComponentArn(ComponentArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String