AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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:
28 AWS_CLOUDFRONT_API UpdateDistribution2020_05_31Request() = default;
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 template<typename DistributionConfigT = DistributionConfig>
48 void SetDistributionConfig(DistributionConfigT&& value) { m_distributionConfigHasBeenSet = true; m_distributionConfig = std::forward<DistributionConfigT>(value); }
49 template<typename DistributionConfigT = DistributionConfig>
50 UpdateDistribution2020_05_31Request& WithDistributionConfig(DistributionConfigT&& value) { SetDistributionConfig(std::forward<DistributionConfigT>(value)); return *this;}
52
54
57 inline const Aws::String& GetId() const { return m_id; }
58 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
59 template<typename IdT = Aws::String>
60 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
61 template<typename IdT = Aws::String>
62 UpdateDistribution2020_05_31Request& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
64
66
70 inline const Aws::String& GetIfMatch() const { return m_ifMatch; }
71 inline bool IfMatchHasBeenSet() const { return m_ifMatchHasBeenSet; }
72 template<typename IfMatchT = Aws::String>
73 void SetIfMatch(IfMatchT&& value) { m_ifMatchHasBeenSet = true; m_ifMatch = std::forward<IfMatchT>(value); }
74 template<typename IfMatchT = Aws::String>
75 UpdateDistribution2020_05_31Request& WithIfMatch(IfMatchT&& value) { SetIfMatch(std::forward<IfMatchT>(value)); return *this;}
77 private:
78
79 DistributionConfig m_distributionConfig;
80 bool m_distributionConfigHasBeenSet = false;
81
82 Aws::String m_id;
83 bool m_idHasBeenSet = false;
84
85 Aws::String m_ifMatch;
86 bool m_ifMatchHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace CloudFront
91} // namespace Aws
UpdateDistribution2020_05_31Request & WithIfMatch(IfMatchT &&value)
UpdateDistribution2020_05_31Request & WithDistributionConfig(DistributionConfigT &&value)
AWS_CLOUDFRONT_API Aws::String SerializePayload() const override
AWS_CLOUDFRONT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CLOUDFRONT_API UpdateDistribution2020_05_31Request()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String