AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssociateAlias2020_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 <utility>
11
12namespace Aws
13{
14namespace Http
15{
16 class URI;
17} //namespace Http
18namespace CloudFront
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_CLOUDFRONT_API AssociateAlias2020_05_31Request();
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 "AssociateAlias"; }
35
36 AWS_CLOUDFRONT_API Aws::String SerializePayload() const override;
37
38 AWS_CLOUDFRONT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
40
42
45 inline const Aws::String& GetTargetDistributionId() const{ return m_targetDistributionId; }
46 inline bool TargetDistributionIdHasBeenSet() const { return m_targetDistributionIdHasBeenSet; }
47 inline void SetTargetDistributionId(const Aws::String& value) { m_targetDistributionIdHasBeenSet = true; m_targetDistributionId = value; }
48 inline void SetTargetDistributionId(Aws::String&& value) { m_targetDistributionIdHasBeenSet = true; m_targetDistributionId = std::move(value); }
49 inline void SetTargetDistributionId(const char* value) { m_targetDistributionIdHasBeenSet = true; m_targetDistributionId.assign(value); }
52 inline AssociateAlias2020_05_31Request& WithTargetDistributionId(const char* value) { SetTargetDistributionId(value); return *this;}
54
56
59 inline const Aws::String& GetAlias() const{ return m_alias; }
60 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
61 inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; }
62 inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); }
63 inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); }
64 inline AssociateAlias2020_05_31Request& WithAlias(const Aws::String& value) { SetAlias(value); return *this;}
65 inline AssociateAlias2020_05_31Request& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;}
66 inline AssociateAlias2020_05_31Request& WithAlias(const char* value) { SetAlias(value); return *this;}
68 private:
69
70 Aws::String m_targetDistributionId;
71 bool m_targetDistributionIdHasBeenSet = false;
72
73 Aws::String m_alias;
74 bool m_aliasHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace CloudFront
79} // namespace Aws
AssociateAlias2020_05_31Request & WithTargetDistributionId(const Aws::String &value)
AssociateAlias2020_05_31Request & WithAlias(const char *value)
AssociateAlias2020_05_31Request & WithAlias(const Aws::String &value)
AssociateAlias2020_05_31Request & WithAlias(Aws::String &&value)
AWS_CLOUDFRONT_API Aws::String SerializePayload() const override
AssociateAlias2020_05_31Request & WithTargetDistributionId(Aws::String &&value)
AssociateAlias2020_05_31Request & WithTargetDistributionId(const char *value)
AWS_CLOUDFRONT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String