AWS SDK for C++  0.14.3
AWS SDK for C++
CreateHealthCheckRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace Route53
24 {
25 namespace Model
26 {
27 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
48  inline const Aws::String& GetCallerReference() const{ return m_callerReference; }
49 
60  inline void SetCallerReference(const Aws::String& value) { m_callerReferenceHasBeenSet = true; m_callerReference = value; }
61 
72  inline void SetCallerReference(Aws::String&& value) { m_callerReferenceHasBeenSet = true; m_callerReference = value; }
73 
84  inline void SetCallerReference(const char* value) { m_callerReferenceHasBeenSet = true; m_callerReference.assign(value); }
85 
96  inline CreateHealthCheckRequest& WithCallerReference(const Aws::String& value) { SetCallerReference(value); return *this;}
97 
108  inline CreateHealthCheckRequest& WithCallerReference(Aws::String&& value) { SetCallerReference(value); return *this;}
109 
120  inline CreateHealthCheckRequest& WithCallerReference(const char* value) { SetCallerReference(value); return *this;}
121 
125  inline const HealthCheckConfig& GetHealthCheckConfig() const{ return m_healthCheckConfig; }
126 
130  inline void SetHealthCheckConfig(const HealthCheckConfig& value) { m_healthCheckConfigHasBeenSet = true; m_healthCheckConfig = value; }
131 
135  inline void SetHealthCheckConfig(HealthCheckConfig&& value) { m_healthCheckConfigHasBeenSet = true; m_healthCheckConfig = value; }
136 
140  inline CreateHealthCheckRequest& WithHealthCheckConfig(const HealthCheckConfig& value) { SetHealthCheckConfig(value); return *this;}
141 
145  inline CreateHealthCheckRequest& WithHealthCheckConfig(HealthCheckConfig&& value) { SetHealthCheckConfig(value); return *this;}
146 
147  private:
148  Aws::String m_callerReference;
149  bool m_callerReferenceHasBeenSet;
150  HealthCheckConfig m_healthCheckConfig;
151  bool m_healthCheckConfigHasBeenSet;
152  };
153 
154 } // namespace Model
155 } // namespace Route53
156 } // namespace Aws
const HealthCheckConfig & GetHealthCheckConfig() const
CreateHealthCheckRequest & WithHealthCheckConfig(HealthCheckConfig &&value)
void SetHealthCheckConfig(const HealthCheckConfig &value)
CreateHealthCheckRequest & WithCallerReference(const Aws::String &value)
CreateHealthCheckRequest & WithCallerReference(Aws::String &&value)
CreateHealthCheckRequest & WithHealthCheckConfig(const HealthCheckConfig &value)
#define AWS_ROUTE53_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateHealthCheckRequest & WithCallerReference(const char *value)
JSON (JavaScript Object Notation).