AWS SDK for C++  1.9.104
AWS SDK for C++
AttachCertificateToDistributionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Lightsail
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "AttachCertificateToDistribution"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
42  inline const Aws::String& GetDistributionName() const{ return m_distributionName; }
43 
49  inline bool DistributionNameHasBeenSet() const { return m_distributionNameHasBeenSet; }
50 
56  inline void SetDistributionName(const Aws::String& value) { m_distributionNameHasBeenSet = true; m_distributionName = value; }
57 
63  inline void SetDistributionName(Aws::String&& value) { m_distributionNameHasBeenSet = true; m_distributionName = std::move(value); }
64 
70  inline void SetDistributionName(const char* value) { m_distributionNameHasBeenSet = true; m_distributionName.assign(value); }
71 
77  inline AttachCertificateToDistributionRequest& WithDistributionName(const Aws::String& value) { SetDistributionName(value); return *this;}
78 
84  inline AttachCertificateToDistributionRequest& WithDistributionName(Aws::String&& value) { SetDistributionName(std::move(value)); return *this;}
85 
91  inline AttachCertificateToDistributionRequest& WithDistributionName(const char* value) { SetDistributionName(value); return *this;}
92 
93 
105  inline const Aws::String& GetCertificateName() const{ return m_certificateName; }
106 
118  inline bool CertificateNameHasBeenSet() const { return m_certificateNameHasBeenSet; }
119 
131  inline void SetCertificateName(const Aws::String& value) { m_certificateNameHasBeenSet = true; m_certificateName = value; }
132 
144  inline void SetCertificateName(Aws::String&& value) { m_certificateNameHasBeenSet = true; m_certificateName = std::move(value); }
145 
157  inline void SetCertificateName(const char* value) { m_certificateNameHasBeenSet = true; m_certificateName.assign(value); }
158 
170  inline AttachCertificateToDistributionRequest& WithCertificateName(const Aws::String& value) { SetCertificateName(value); return *this;}
171 
183  inline AttachCertificateToDistributionRequest& WithCertificateName(Aws::String&& value) { SetCertificateName(std::move(value)); return *this;}
184 
196  inline AttachCertificateToDistributionRequest& WithCertificateName(const char* value) { SetCertificateName(value); return *this;}
197 
198  private:
199 
200  Aws::String m_distributionName;
201  bool m_distributionNameHasBeenSet;
202 
203  Aws::String m_certificateName;
204  bool m_certificateNameHasBeenSet;
205  };
206 
207 } // namespace Model
208 } // namespace Lightsail
209 } // namespace Aws
Aws::Lightsail::Model::AttachCertificateToDistributionRequest::SetDistributionName
void SetDistributionName(const Aws::String &value)
Definition: AttachCertificateToDistributionRequest.h:56
Aws::Lightsail::Model::AttachCertificateToDistributionRequest
Definition: AttachCertificateToDistributionRequest.h:22
Aws::Lightsail::Model::AttachCertificateToDistributionRequest::WithCertificateName
AttachCertificateToDistributionRequest & WithCertificateName(const Aws::String &value)
Definition: AttachCertificateToDistributionRequest.h:170
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::AttachCertificateToDistributionRequest::CertificateNameHasBeenSet
bool CertificateNameHasBeenSet() const
Definition: AttachCertificateToDistributionRequest.h:118
Aws::Lightsail::Model::AttachCertificateToDistributionRequest::SetDistributionName
void SetDistributionName(const char *value)
Definition: AttachCertificateToDistributionRequest.h:70
Aws::Lightsail::Model::AttachCertificateToDistributionRequest::WithDistributionName
AttachCertificateToDistributionRequest & WithDistributionName(const char *value)
Definition: AttachCertificateToDistributionRequest.h:91
Aws::Lightsail::Model::AttachCertificateToDistributionRequest::GetCertificateName
const Aws::String & GetCertificateName() const
Definition: AttachCertificateToDistributionRequest.h:105
Aws::Lightsail::Model::AttachCertificateToDistributionRequest::AttachCertificateToDistributionRequest
AttachCertificateToDistributionRequest()
Aws::Lightsail::Model::AttachCertificateToDistributionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AttachCertificateToDistributionRequest.h:30
LightsailRequest.h
Aws::Lightsail::Model::AttachCertificateToDistributionRequest::DistributionNameHasBeenSet
bool DistributionNameHasBeenSet() const
Definition: AttachCertificateToDistributionRequest.h:49
Aws::Lightsail::Model::AttachCertificateToDistributionRequest::WithDistributionName
AttachCertificateToDistributionRequest & WithDistributionName(Aws::String &&value)
Definition: AttachCertificateToDistributionRequest.h:84
Aws::Lightsail::Model::AttachCertificateToDistributionRequest::GetDistributionName
const Aws::String & GetDistributionName() const
Definition: AttachCertificateToDistributionRequest.h:42
Aws::Lightsail::Model::AttachCertificateToDistributionRequest::WithCertificateName
AttachCertificateToDistributionRequest & WithCertificateName(Aws::String &&value)
Definition: AttachCertificateToDistributionRequest.h:183
Aws::Lightsail::Model::AttachCertificateToDistributionRequest::SetCertificateName
void SetCertificateName(const Aws::String &value)
Definition: AttachCertificateToDistributionRequest.h:131
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
Aws::Lightsail::Model::AttachCertificateToDistributionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWSString.h
Lightsail_EXPORTS.h
Aws::Lightsail::Model::AttachCertificateToDistributionRequest::WithDistributionName
AttachCertificateToDistributionRequest & WithDistributionName(const Aws::String &value)
Definition: AttachCertificateToDistributionRequest.h:77
Aws::Lightsail::Model::AttachCertificateToDistributionRequest::SetCertificateName
void SetCertificateName(Aws::String &&value)
Definition: AttachCertificateToDistributionRequest.h:144
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::AttachCertificateToDistributionRequest::SetDistributionName
void SetDistributionName(Aws::String &&value)
Definition: AttachCertificateToDistributionRequest.h:63
Aws::Lightsail::Model::AttachCertificateToDistributionRequest::WithCertificateName
AttachCertificateToDistributionRequest & WithCertificateName(const char *value)
Definition: AttachCertificateToDistributionRequest.h:196
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::AttachCertificateToDistributionRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::AttachCertificateToDistributionRequest::SetCertificateName
void SetCertificateName(const char *value)
Definition: AttachCertificateToDistributionRequest.h:157