AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateInvalidation2020_05_31Request.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/CloudFrontRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/cloudfront/model/InvalidationBatch.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CloudFront
16{
17namespace 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_CLOUDFRONT_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetDistributionId() const{ return m_distributionId; }
44 inline bool DistributionIdHasBeenSet() const { return m_distributionIdHasBeenSet; }
45 inline void SetDistributionId(const Aws::String& value) { m_distributionIdHasBeenSet = true; m_distributionId = value; }
46 inline void SetDistributionId(Aws::String&& value) { m_distributionIdHasBeenSet = true; m_distributionId = std::move(value); }
47 inline void SetDistributionId(const char* value) { m_distributionIdHasBeenSet = true; m_distributionId.assign(value); }
49 inline CreateInvalidation2020_05_31Request& WithDistributionId(Aws::String&& value) { SetDistributionId(std::move(value)); return *this;}
50 inline CreateInvalidation2020_05_31Request& WithDistributionId(const char* value) { SetDistributionId(value); return *this;}
52
54
57 inline const InvalidationBatch& GetInvalidationBatch() const{ return m_invalidationBatch; }
58 inline bool InvalidationBatchHasBeenSet() const { return m_invalidationBatchHasBeenSet; }
59 inline void SetInvalidationBatch(const InvalidationBatch& value) { m_invalidationBatchHasBeenSet = true; m_invalidationBatch = value; }
60 inline void SetInvalidationBatch(InvalidationBatch&& value) { m_invalidationBatchHasBeenSet = true; m_invalidationBatch = std::move(value); }
64 private:
65
66 Aws::String m_distributionId;
67 bool m_distributionIdHasBeenSet = false;
68
69 InvalidationBatch m_invalidationBatch;
70 bool m_invalidationBatchHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace CloudFront
75} // namespace Aws
AWS_CLOUDFRONT_API Aws::String SerializePayload() const override
CreateInvalidation2020_05_31Request & WithDistributionId(const Aws::String &value)
CreateInvalidation2020_05_31Request & WithInvalidationBatch(InvalidationBatch &&value)
CreateInvalidation2020_05_31Request & WithDistributionId(Aws::String &&value)
CreateInvalidation2020_05_31Request & WithInvalidationBatch(const InvalidationBatch &value)
CreateInvalidation2020_05_31Request & WithDistributionId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String