AWS SDK for C++  1.9.14
AWS SDK for C++
CreateMonitoringSubscription2020_05_31Request.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace CloudFront
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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 "CreateMonitoringSubscription"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
39  inline const Aws::String& GetDistributionId() const{ return m_distributionId; }
40 
44  inline bool DistributionIdHasBeenSet() const { return m_distributionIdHasBeenSet; }
45 
49  inline void SetDistributionId(const Aws::String& value) { m_distributionIdHasBeenSet = true; m_distributionId = value; }
50 
54  inline void SetDistributionId(Aws::String&& value) { m_distributionIdHasBeenSet = true; m_distributionId = std::move(value); }
55 
59  inline void SetDistributionId(const char* value) { m_distributionIdHasBeenSet = true; m_distributionId.assign(value); }
60 
64  inline CreateMonitoringSubscription2020_05_31Request& WithDistributionId(const Aws::String& value) { SetDistributionId(value); return *this;}
65 
69  inline CreateMonitoringSubscription2020_05_31Request& WithDistributionId(Aws::String&& value) { SetDistributionId(std::move(value)); return *this;}
70 
74  inline CreateMonitoringSubscription2020_05_31Request& WithDistributionId(const char* value) { SetDistributionId(value); return *this;}
75 
76 
82  inline const MonitoringSubscription& GetMonitoringSubscription() const{ return m_monitoringSubscription; }
83 
89  inline bool MonitoringSubscriptionHasBeenSet() const { return m_monitoringSubscriptionHasBeenSet; }
90 
96  inline void SetMonitoringSubscription(const MonitoringSubscription& value) { m_monitoringSubscriptionHasBeenSet = true; m_monitoringSubscription = value; }
97 
103  inline void SetMonitoringSubscription(MonitoringSubscription&& value) { m_monitoringSubscriptionHasBeenSet = true; m_monitoringSubscription = std::move(value); }
104 
110  inline CreateMonitoringSubscription2020_05_31Request& WithMonitoringSubscription(const MonitoringSubscription& value) { SetMonitoringSubscription(value); return *this;}
111 
117  inline CreateMonitoringSubscription2020_05_31Request& WithMonitoringSubscription(MonitoringSubscription&& value) { SetMonitoringSubscription(std::move(value)); return *this;}
118 
119  private:
120 
121  Aws::String m_distributionId;
122  bool m_distributionIdHasBeenSet;
123 
124  MonitoringSubscription m_monitoringSubscription;
125  bool m_monitoringSubscriptionHasBeenSet;
126  };
127 
128 } // namespace Model
129 } // namespace CloudFront
130 } // namespace Aws
MonitoringSubscription.h
Aws::CloudFront::Model::CreateMonitoringSubscription2020_05_31Request::GetDistributionId
const Aws::String & GetDistributionId() const
Definition: CreateMonitoringSubscription2020_05_31Request.h:39
CloudFrontRequest.h
Aws::CloudFront::Model::CreateMonitoringSubscription2020_05_31Request::SetDistributionId
void SetDistributionId(const Aws::String &value)
Definition: CreateMonitoringSubscription2020_05_31Request.h:49
Aws::CloudFront::Model::CreateMonitoringSubscription2020_05_31Request::GetMonitoringSubscription
const MonitoringSubscription & GetMonitoringSubscription() const
Definition: CreateMonitoringSubscription2020_05_31Request.h:82
Aws::CloudFront::Model::CreateMonitoringSubscription2020_05_31Request::WithMonitoringSubscription
CreateMonitoringSubscription2020_05_31Request & WithMonitoringSubscription(MonitoringSubscription &&value)
Definition: CreateMonitoringSubscription2020_05_31Request.h:117
Aws::CloudFront::Model::CreateMonitoringSubscription2020_05_31Request::SetMonitoringSubscription
void SetMonitoringSubscription(const MonitoringSubscription &value)
Definition: CreateMonitoringSubscription2020_05_31Request.h:96
Aws::CloudFront::Model::MonitoringSubscription
Definition: MonitoringSubscription.h:33
Aws::CloudFront::Model::CreateMonitoringSubscription2020_05_31Request
Definition: CreateMonitoringSubscription2020_05_31Request.h:23
Aws::CloudFront::Model::CreateMonitoringSubscription2020_05_31Request::WithDistributionId
CreateMonitoringSubscription2020_05_31Request & WithDistributionId(Aws::String &&value)
Definition: CreateMonitoringSubscription2020_05_31Request.h:69
Aws::CloudFront::Model::CreateMonitoringSubscription2020_05_31Request::MonitoringSubscriptionHasBeenSet
bool MonitoringSubscriptionHasBeenSet() const
Definition: CreateMonitoringSubscription2020_05_31Request.h:89
Aws::CloudFront::Model::CreateMonitoringSubscription2020_05_31Request::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateMonitoringSubscription2020_05_31Request.h:31
AWSString.h
Aws::CloudFront::CloudFrontRequest
Definition: CloudFrontRequest.h:17
Aws::CloudFront::Model::CreateMonitoringSubscription2020_05_31Request::WithDistributionId
CreateMonitoringSubscription2020_05_31Request & WithDistributionId(const char *value)
Definition: CreateMonitoringSubscription2020_05_31Request.h:74
Aws::CloudFront::Model::CreateMonitoringSubscription2020_05_31Request::SetMonitoringSubscription
void SetMonitoringSubscription(MonitoringSubscription &&value)
Definition: CreateMonitoringSubscription2020_05_31Request.h:103
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
CloudFront_EXPORTS.h
Aws::CloudFront::Model::CreateMonitoringSubscription2020_05_31Request::SetDistributionId
void SetDistributionId(const char *value)
Definition: CreateMonitoringSubscription2020_05_31Request.h:59
Aws::CloudFront::Model::CreateMonitoringSubscription2020_05_31Request::SetDistributionId
void SetDistributionId(Aws::String &&value)
Definition: CreateMonitoringSubscription2020_05_31Request.h:54
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::CreateMonitoringSubscription2020_05_31Request::DistributionIdHasBeenSet
bool DistributionIdHasBeenSet() const
Definition: CreateMonitoringSubscription2020_05_31Request.h:44
Aws::CloudFront::Model::CreateMonitoringSubscription2020_05_31Request::SerializePayload
Aws::String SerializePayload() const override
Aws::CloudFront::Model::CreateMonitoringSubscription2020_05_31Request::CreateMonitoringSubscription2020_05_31Request
CreateMonitoringSubscription2020_05_31Request()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::CreateMonitoringSubscription2020_05_31Request::WithDistributionId
CreateMonitoringSubscription2020_05_31Request & WithDistributionId(const Aws::String &value)
Definition: CreateMonitoringSubscription2020_05_31Request.h:64
Aws::CloudFront::Model::CreateMonitoringSubscription2020_05_31Request::WithMonitoringSubscription
CreateMonitoringSubscription2020_05_31Request & WithMonitoringSubscription(const MonitoringSubscription &value)
Definition: CreateMonitoringSubscription2020_05_31Request.h:110