AWS SDK for C++  1.9.21
AWS SDK for C++
CreateOriginRequestPolicy2020_05_31Request.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace CloudFront
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 "CreateOriginRequestPolicy"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
38  inline const OriginRequestPolicyConfig& GetOriginRequestPolicyConfig() const{ return m_originRequestPolicyConfig; }
39 
43  inline bool OriginRequestPolicyConfigHasBeenSet() const { return m_originRequestPolicyConfigHasBeenSet; }
44 
48  inline void SetOriginRequestPolicyConfig(const OriginRequestPolicyConfig& value) { m_originRequestPolicyConfigHasBeenSet = true; m_originRequestPolicyConfig = value; }
49 
53  inline void SetOriginRequestPolicyConfig(OriginRequestPolicyConfig&& value) { m_originRequestPolicyConfigHasBeenSet = true; m_originRequestPolicyConfig = std::move(value); }
54 
58  inline CreateOriginRequestPolicy2020_05_31Request& WithOriginRequestPolicyConfig(const OriginRequestPolicyConfig& value) { SetOriginRequestPolicyConfig(value); return *this;}
59 
63  inline CreateOriginRequestPolicy2020_05_31Request& WithOriginRequestPolicyConfig(OriginRequestPolicyConfig&& value) { SetOriginRequestPolicyConfig(std::move(value)); return *this;}
64 
65  private:
66 
67  OriginRequestPolicyConfig m_originRequestPolicyConfig;
68  bool m_originRequestPolicyConfigHasBeenSet;
69  };
70 
71 } // namespace Model
72 } // namespace CloudFront
73 } // namespace Aws
CloudFrontRequest.h
Aws::CloudFront::Model::CreateOriginRequestPolicy2020_05_31Request::SerializePayload
Aws::String SerializePayload() const override
Aws::CloudFront::Model::CreateOriginRequestPolicy2020_05_31Request::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateOriginRequestPolicy2020_05_31Request.h:30
Aws::CloudFront::Model::CreateOriginRequestPolicy2020_05_31Request::WithOriginRequestPolicyConfig
CreateOriginRequestPolicy2020_05_31Request & WithOriginRequestPolicyConfig(OriginRequestPolicyConfig &&value)
Definition: CreateOriginRequestPolicy2020_05_31Request.h:63
Aws::CloudFront::Model::CreateOriginRequestPolicy2020_05_31Request::WithOriginRequestPolicyConfig
CreateOriginRequestPolicy2020_05_31Request & WithOriginRequestPolicyConfig(const OriginRequestPolicyConfig &value)
Definition: CreateOriginRequestPolicy2020_05_31Request.h:58
Aws::CloudFront::Model::CreateOriginRequestPolicy2020_05_31Request::GetOriginRequestPolicyConfig
const OriginRequestPolicyConfig & GetOriginRequestPolicyConfig() const
Definition: CreateOriginRequestPolicy2020_05_31Request.h:38
Aws::CloudFront::CloudFrontRequest
Definition: CloudFrontRequest.h:17
Aws::CloudFront::Model::CreateOriginRequestPolicy2020_05_31Request::CreateOriginRequestPolicy2020_05_31Request
CreateOriginRequestPolicy2020_05_31Request()
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
CloudFront_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::CreateOriginRequestPolicy2020_05_31Request::OriginRequestPolicyConfigHasBeenSet
bool OriginRequestPolicyConfigHasBeenSet() const
Definition: CreateOriginRequestPolicy2020_05_31Request.h:43
Aws::CloudFront::Model::CreateOriginRequestPolicy2020_05_31Request
Definition: CreateOriginRequestPolicy2020_05_31Request.h:22
Aws::CloudFront::Model::CreateOriginRequestPolicy2020_05_31Request::SetOriginRequestPolicyConfig
void SetOriginRequestPolicyConfig(const OriginRequestPolicyConfig &value)
Definition: CreateOriginRequestPolicy2020_05_31Request.h:48
OriginRequestPolicyConfig.h
Aws::CloudFront::Model::OriginRequestPolicyConfig
Definition: OriginRequestPolicyConfig.h:47
Aws::CloudFront::Model::CreateOriginRequestPolicy2020_05_31Request::SetOriginRequestPolicyConfig
void SetOriginRequestPolicyConfig(OriginRequestPolicyConfig &&value)
Definition: CreateOriginRequestPolicy2020_05_31Request.h:53