AWS SDK for C++  1.9.130
AWS SDK for C++
CreateDistribution2020_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 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreateDistribution"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
41  inline const DistributionConfig& GetDistributionConfig() const{ return m_distributionConfig; }
42 
46  inline bool DistributionConfigHasBeenSet() const { return m_distributionConfigHasBeenSet; }
47 
51  inline void SetDistributionConfig(const DistributionConfig& value) { m_distributionConfigHasBeenSet = true; m_distributionConfig = value; }
52 
56  inline void SetDistributionConfig(DistributionConfig&& value) { m_distributionConfigHasBeenSet = true; m_distributionConfig = std::move(value); }
57 
61  inline CreateDistribution2020_05_31Request& WithDistributionConfig(const DistributionConfig& value) { SetDistributionConfig(value); return *this;}
62 
66  inline CreateDistribution2020_05_31Request& WithDistributionConfig(DistributionConfig&& value) { SetDistributionConfig(std::move(value)); return *this;}
67 
68  private:
69 
70  DistributionConfig m_distributionConfig;
71  bool m_distributionConfigHasBeenSet;
72  };
73 
74 } // namespace Model
75 } // namespace CloudFront
76 } // namespace Aws
Aws::CloudFront::Model::CreateDistribution2020_05_31Request::SerializePayload
Aws::String SerializePayload() const override
Aws::CloudFront::Model::CreateDistribution2020_05_31Request::GetDistributionConfig
const DistributionConfig & GetDistributionConfig() const
Definition: CreateDistribution2020_05_31Request.h:41
CloudFrontRequest.h
Aws::CloudFront::Model::CreateDistribution2020_05_31Request::WithDistributionConfig
CreateDistribution2020_05_31Request & WithDistributionConfig(DistributionConfig &&value)
Definition: CreateDistribution2020_05_31Request.h:66
Aws::CloudFront::Model::CreateDistribution2020_05_31Request::WithDistributionConfig
CreateDistribution2020_05_31Request & WithDistributionConfig(const DistributionConfig &value)
Definition: CreateDistribution2020_05_31Request.h:61
Aws::CloudFront::Model::CreateDistribution2020_05_31Request::SetDistributionConfig
void SetDistributionConfig(const DistributionConfig &value)
Definition: CreateDistribution2020_05_31Request.h:51
DistributionConfig.h
Aws::CloudFront::Model::CreateDistribution2020_05_31Request::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateDistribution2020_05_31Request.h:33
Aws::CloudFront::Model::CreateDistribution2020_05_31Request::CreateDistribution2020_05_31Request
CreateDistribution2020_05_31Request()
Aws::CloudFront::CloudFrontRequest
Definition: CloudFrontRequest.h:17
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::CreateDistribution2020_05_31Request
Definition: CreateDistribution2020_05_31Request.h:25
CloudFront_EXPORTS.h
Aws::CloudFront::Model::CreateDistribution2020_05_31Request::SetDistributionConfig
void SetDistributionConfig(DistributionConfig &&value)
Definition: CreateDistribution2020_05_31Request.h:56
Aws::CloudFront::Model::DistributionConfig
Definition: DistributionConfig.h:42
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::CreateDistribution2020_05_31Request::DistributionConfigHasBeenSet
bool DistributionConfigHasBeenSet() const
Definition: CreateDistribution2020_05_31Request.h:46
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97