AWS SDK for C++  1.9.20
AWS SDK for C++
CreateInvalidation2020_05_31Request.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace CloudFront
16 {
17 namespace Model
18 {
19 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateInvalidation"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
42  inline const Aws::String& GetDistributionId() const{ return m_distributionId; }
43 
47  inline bool DistributionIdHasBeenSet() const { return m_distributionIdHasBeenSet; }
48 
52  inline void SetDistributionId(const Aws::String& value) { m_distributionIdHasBeenSet = true; m_distributionId = value; }
53 
57  inline void SetDistributionId(Aws::String&& value) { m_distributionIdHasBeenSet = true; m_distributionId = std::move(value); }
58 
62  inline void SetDistributionId(const char* value) { m_distributionIdHasBeenSet = true; m_distributionId.assign(value); }
63 
67  inline CreateInvalidation2020_05_31Request& WithDistributionId(const Aws::String& value) { SetDistributionId(value); return *this;}
68 
72  inline CreateInvalidation2020_05_31Request& WithDistributionId(Aws::String&& value) { SetDistributionId(std::move(value)); return *this;}
73 
77  inline CreateInvalidation2020_05_31Request& WithDistributionId(const char* value) { SetDistributionId(value); return *this;}
78 
79 
83  inline const InvalidationBatch& GetInvalidationBatch() const{ return m_invalidationBatch; }
84 
88  inline bool InvalidationBatchHasBeenSet() const { return m_invalidationBatchHasBeenSet; }
89 
93  inline void SetInvalidationBatch(const InvalidationBatch& value) { m_invalidationBatchHasBeenSet = true; m_invalidationBatch = value; }
94 
98  inline void SetInvalidationBatch(InvalidationBatch&& value) { m_invalidationBatchHasBeenSet = true; m_invalidationBatch = std::move(value); }
99 
103  inline CreateInvalidation2020_05_31Request& WithInvalidationBatch(const InvalidationBatch& value) { SetInvalidationBatch(value); return *this;}
104 
108  inline CreateInvalidation2020_05_31Request& WithInvalidationBatch(InvalidationBatch&& value) { SetInvalidationBatch(std::move(value)); return *this;}
109 
110  private:
111 
112  Aws::String m_distributionId;
113  bool m_distributionIdHasBeenSet;
114 
115  InvalidationBatch m_invalidationBatch;
116  bool m_invalidationBatchHasBeenSet;
117  };
118 
119 } // namespace Model
120 } // namespace CloudFront
121 } // namespace Aws
Aws::CloudFront::Model::CreateInvalidation2020_05_31Request::SetInvalidationBatch
void SetInvalidationBatch(InvalidationBatch &&value)
Definition: CreateInvalidation2020_05_31Request.h:98
Aws::CloudFront::Model::InvalidationBatch
Definition: InvalidationBatch.h:32
Aws::CloudFront::Model::CreateInvalidation2020_05_31Request::WithInvalidationBatch
CreateInvalidation2020_05_31Request & WithInvalidationBatch(const InvalidationBatch &value)
Definition: CreateInvalidation2020_05_31Request.h:103
Aws::CloudFront::Model::CreateInvalidation2020_05_31Request::DistributionIdHasBeenSet
bool DistributionIdHasBeenSet() const
Definition: CreateInvalidation2020_05_31Request.h:47
CloudFrontRequest.h
Aws::CloudFront::Model::CreateInvalidation2020_05_31Request::WithDistributionId
CreateInvalidation2020_05_31Request & WithDistributionId(const char *value)
Definition: CreateInvalidation2020_05_31Request.h:77
Aws::CloudFront::Model::CreateInvalidation2020_05_31Request::WithDistributionId
CreateInvalidation2020_05_31Request & WithDistributionId(const Aws::String &value)
Definition: CreateInvalidation2020_05_31Request.h:67
Aws::CloudFront::Model::CreateInvalidation2020_05_31Request::GetDistributionId
const Aws::String & GetDistributionId() const
Definition: CreateInvalidation2020_05_31Request.h:42
Aws::CloudFront::Model::CreateInvalidation2020_05_31Request::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateInvalidation2020_05_31Request.h:34
Aws::CloudFront::Model::CreateInvalidation2020_05_31Request::WithDistributionId
CreateInvalidation2020_05_31Request & WithDistributionId(Aws::String &&value)
Definition: CreateInvalidation2020_05_31Request.h:72
AWSString.h
Aws::CloudFront::Model::CreateInvalidation2020_05_31Request::SetDistributionId
void SetDistributionId(const char *value)
Definition: CreateInvalidation2020_05_31Request.h:62
Aws::CloudFront::CloudFrontRequest
Definition: CloudFrontRequest.h:17
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::CreateInvalidation2020_05_31Request::SetDistributionId
void SetDistributionId(const Aws::String &value)
Definition: CreateInvalidation2020_05_31Request.h:52
Aws::CloudFront::Model::CreateInvalidation2020_05_31Request::InvalidationBatchHasBeenSet
bool InvalidationBatchHasBeenSet() const
Definition: CreateInvalidation2020_05_31Request.h:88
CloudFront_EXPORTS.h
Aws::CloudFront::Model::CreateInvalidation2020_05_31Request::SerializePayload
Aws::String SerializePayload() const override
Aws::CloudFront::Model::CreateInvalidation2020_05_31Request
Definition: CreateInvalidation2020_05_31Request.h:26
Aws::CloudFront::Model::CreateInvalidation2020_05_31Request::SetInvalidationBatch
void SetInvalidationBatch(const InvalidationBatch &value)
Definition: CreateInvalidation2020_05_31Request.h:93
Aws::CloudFront::Model::CreateInvalidation2020_05_31Request::SetDistributionId
void SetDistributionId(Aws::String &&value)
Definition: CreateInvalidation2020_05_31Request.h:57
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::CreateInvalidation2020_05_31Request::CreateInvalidation2020_05_31Request
CreateInvalidation2020_05_31Request()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::CreateInvalidation2020_05_31Request::GetInvalidationBatch
const InvalidationBatch & GetInvalidationBatch() const
Definition: CreateInvalidation2020_05_31Request.h:83
InvalidationBatch.h
Aws::CloudFront::Model::CreateInvalidation2020_05_31Request::WithInvalidationBatch
CreateInvalidation2020_05_31Request & WithInvalidationBatch(InvalidationBatch &&value)
Definition: CreateInvalidation2020_05_31Request.h:108