AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateDistribution2020_05_31Request.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/CloudFrontRequest.h>
9#include <aws/cloudfront/model/DistributionConfig.h>
10#include <aws/core/utils/memory/stl/AWSString.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 "UpdateDistribution"; }
35
36 AWS_CLOUDFRONT_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const DistributionConfig& GetDistributionConfig() const{ return m_distributionConfig; }
46 inline bool DistributionConfigHasBeenSet() const { return m_distributionConfigHasBeenSet; }
47 inline void SetDistributionConfig(const DistributionConfig& value) { m_distributionConfigHasBeenSet = true; m_distributionConfig = value; }
48 inline void SetDistributionConfig(DistributionConfig&& value) { m_distributionConfigHasBeenSet = true; m_distributionConfig = std::move(value); }
52
54
57 inline const Aws::String& GetId() const{ return m_id; }
58 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
59 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
60 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
61 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
62 inline UpdateDistribution2020_05_31Request& WithId(const Aws::String& value) { SetId(value); return *this;}
63 inline UpdateDistribution2020_05_31Request& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
64 inline UpdateDistribution2020_05_31Request& WithId(const char* value) { SetId(value); return *this;}
66
68
72 inline const Aws::String& GetIfMatch() const{ return m_ifMatch; }
73 inline bool IfMatchHasBeenSet() const { return m_ifMatchHasBeenSet; }
74 inline void SetIfMatch(const Aws::String& value) { m_ifMatchHasBeenSet = true; m_ifMatch = value; }
75 inline void SetIfMatch(Aws::String&& value) { m_ifMatchHasBeenSet = true; m_ifMatch = std::move(value); }
76 inline void SetIfMatch(const char* value) { m_ifMatchHasBeenSet = true; m_ifMatch.assign(value); }
77 inline UpdateDistribution2020_05_31Request& WithIfMatch(const Aws::String& value) { SetIfMatch(value); return *this;}
78 inline UpdateDistribution2020_05_31Request& WithIfMatch(Aws::String&& value) { SetIfMatch(std::move(value)); return *this;}
79 inline UpdateDistribution2020_05_31Request& WithIfMatch(const char* value) { SetIfMatch(value); return *this;}
81 private:
82
83 DistributionConfig m_distributionConfig;
84 bool m_distributionConfigHasBeenSet = false;
85
86 Aws::String m_id;
87 bool m_idHasBeenSet = false;
88
89 Aws::String m_ifMatch;
90 bool m_ifMatchHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace CloudFront
95} // namespace Aws
UpdateDistribution2020_05_31Request & WithIfMatch(Aws::String &&value)
UpdateDistribution2020_05_31Request & WithDistributionConfig(DistributionConfig &&value)
UpdateDistribution2020_05_31Request & WithIfMatch(const Aws::String &value)
UpdateDistribution2020_05_31Request & WithDistributionConfig(const DistributionConfig &value)
UpdateDistribution2020_05_31Request & WithId(Aws::String &&value)
AWS_CLOUDFRONT_API Aws::String SerializePayload() const override
UpdateDistribution2020_05_31Request & WithId(const Aws::String &value)
AWS_CLOUDFRONT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateDistribution2020_05_31Request & WithId(const char *value)
UpdateDistribution2020_05_31Request & WithIfMatch(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String