AWS SDK for C++  1.9.159
AWS SDK for C++
PutPolicyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace MediaConvert
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "PutPolicy"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
40  inline const Policy& GetPolicy() const{ return m_policy; }
41 
47  inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
48 
54  inline void SetPolicy(const Policy& value) { m_policyHasBeenSet = true; m_policy = value; }
55 
61  inline void SetPolicy(Policy&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
62 
68  inline PutPolicyRequest& WithPolicy(const Policy& value) { SetPolicy(value); return *this;}
69 
75  inline PutPolicyRequest& WithPolicy(Policy&& value) { SetPolicy(std::move(value)); return *this;}
76 
77  private:
78 
79  Policy m_policy;
80  bool m_policyHasBeenSet;
81  };
82 
83 } // namespace Model
84 } // namespace MediaConvert
85 } // namespace Aws
Aws::MediaConvert::Model::PutPolicyRequest::SetPolicy
void SetPolicy(const Policy &value)
Definition: PutPolicyRequest.h:54
MediaConvertRequest.h
MediaConvert_EXPORTS.h
AWS_MEDIACONVERT_API
#define AWS_MEDIACONVERT_API
Definition: MediaConvert_EXPORTS.h:28
Aws::MediaConvert::Model::PutPolicyRequest
Definition: PutPolicyRequest.h:22
Aws::MediaConvert::Model::PutPolicyRequest::PolicyHasBeenSet
bool PolicyHasBeenSet() const
Definition: PutPolicyRequest.h:47
Policy.h
Aws::MediaConvert::Model::PutPolicyRequest::SetPolicy
void SetPolicy(Policy &&value)
Definition: PutPolicyRequest.h:61
Aws::MediaConvert::MediaConvertRequest
Definition: MediaConvertRequest.h:17
Aws::MediaConvert::Model::PutPolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutPolicyRequest.h:30
Aws::MediaConvert::Model::PutPolicyRequest::PutPolicyRequest
PutPolicyRequest()
Aws::MediaConvert::Model::PutPolicyRequest::GetPolicy
const Policy & GetPolicy() const
Definition: PutPolicyRequest.h:40
Aws
Definition: AccessManagementClient.h:15
Aws::MediaConvert::Model::PutPolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MediaConvert::Model::Policy
Definition: Policy.h:35
Aws::MediaConvert::Model::PutPolicyRequest::WithPolicy
PutPolicyRequest & WithPolicy(Policy &&value)
Definition: PutPolicyRequest.h:75
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MediaConvert::Model::PutPolicyRequest::WithPolicy
PutPolicyRequest & WithPolicy(const Policy &value)
Definition: PutPolicyRequest.h:68