AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateDomainAssociation2020_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/DistributionResourceId.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CloudFront
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CLOUDFRONT_API UpdateDomainAssociation2020_05_31Request() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateDomainAssociation"; }
32
33 AWS_CLOUDFRONT_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetDomain() const { return m_domain; }
43 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
44 template<typename DomainT = Aws::String>
45 void SetDomain(DomainT&& value) { m_domainHasBeenSet = true; m_domain = std::forward<DomainT>(value); }
46 template<typename DomainT = Aws::String>
47 UpdateDomainAssociation2020_05_31Request& WithDomain(DomainT&& value) { SetDomain(std::forward<DomainT>(value)); return *this;}
49
51
56 inline const DistributionResourceId& GetTargetResource() const { return m_targetResource; }
57 inline bool TargetResourceHasBeenSet() const { return m_targetResourceHasBeenSet; }
58 template<typename TargetResourceT = DistributionResourceId>
59 void SetTargetResource(TargetResourceT&& value) { m_targetResourceHasBeenSet = true; m_targetResource = std::forward<TargetResourceT>(value); }
60 template<typename TargetResourceT = DistributionResourceId>
61 UpdateDomainAssociation2020_05_31Request& WithTargetResource(TargetResourceT&& value) { SetTargetResource(std::forward<TargetResourceT>(value)); return *this;}
63
65
69 inline const Aws::String& GetIfMatch() const { return m_ifMatch; }
70 inline bool IfMatchHasBeenSet() const { return m_ifMatchHasBeenSet; }
71 template<typename IfMatchT = Aws::String>
72 void SetIfMatch(IfMatchT&& value) { m_ifMatchHasBeenSet = true; m_ifMatch = std::forward<IfMatchT>(value); }
73 template<typename IfMatchT = Aws::String>
74 UpdateDomainAssociation2020_05_31Request& WithIfMatch(IfMatchT&& value) { SetIfMatch(std::forward<IfMatchT>(value)); return *this;}
76 private:
77
78 Aws::String m_domain;
79 bool m_domainHasBeenSet = false;
80
81 DistributionResourceId m_targetResource;
82 bool m_targetResourceHasBeenSet = false;
83
84 Aws::String m_ifMatch;
85 bool m_ifMatchHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace CloudFront
90} // namespace Aws
UpdateDomainAssociation2020_05_31Request & WithTargetResource(TargetResourceT &&value)
UpdateDomainAssociation2020_05_31Request & WithIfMatch(IfMatchT &&value)
AWS_CLOUDFRONT_API Aws::String SerializePayload() const override
UpdateDomainAssociation2020_05_31Request & WithDomain(DomainT &&value)
AWS_CLOUDFRONT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String