AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
PutResourcePolicyRequest.h
1
6#pragma once
7#include <aws/bedrock/BedrockRequest.h>
8#include <aws/bedrock/Bedrock_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Bedrock {
15namespace Model {
16
20 public:
21 AWS_BEDROCK_API PutResourcePolicyRequest() = 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 "PutResourcePolicy"; }
28
29 AWS_BEDROCK_API Aws::String SerializePayload() const override;
30
32
35 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
36 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
37 template <typename ResourceArnT = Aws::String>
39 m_resourceArnHasBeenSet = true;
40 m_resourceArn = std::forward<ResourceArnT>(value);
41 }
42 template <typename ResourceArnT = Aws::String>
44 SetResourceArn(std::forward<ResourceArnT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetResourcePolicy() const { return m_resourcePolicy; }
54 inline bool ResourcePolicyHasBeenSet() const { return m_resourcePolicyHasBeenSet; }
55 template <typename ResourcePolicyT = Aws::String>
57 m_resourcePolicyHasBeenSet = true;
58 m_resourcePolicy = std::forward<ResourcePolicyT>(value);
59 }
60 template <typename ResourcePolicyT = Aws::String>
62 SetResourcePolicy(std::forward<ResourcePolicyT>(value));
63 return *this;
64 }
66 private:
67 Aws::String m_resourceArn;
68
69 Aws::String m_resourcePolicy;
70 bool m_resourceArnHasBeenSet = false;
71 bool m_resourcePolicyHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace Bedrock
76} // namespace Aws
PutResourcePolicyRequest & WithResourceArn(ResourceArnT &&value)
AWS_BEDROCK_API Aws::String SerializePayload() const override
PutResourcePolicyRequest & WithResourcePolicy(ResourcePolicyT &&value)
virtual const char * GetServiceRequestName() const override
AWS_BEDROCK_API PutResourcePolicyRequest()=default
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String