AWS SDK for C++  1.8.71
AWS SDK for C++
ConfigureHealthCheckRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace ElasticLoadBalancing
16 {
17 namespace Model
18 {
19 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "ConfigureHealthCheck"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
47  inline const Aws::String& GetLoadBalancerName() const{ return m_loadBalancerName; }
48 
52  inline bool LoadBalancerNameHasBeenSet() const { return m_loadBalancerNameHasBeenSet; }
53 
57  inline void SetLoadBalancerName(const Aws::String& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = value; }
58 
62  inline void SetLoadBalancerName(Aws::String&& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = std::move(value); }
63 
67  inline void SetLoadBalancerName(const char* value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName.assign(value); }
68 
72  inline ConfigureHealthCheckRequest& WithLoadBalancerName(const Aws::String& value) { SetLoadBalancerName(value); return *this;}
73 
77  inline ConfigureHealthCheckRequest& WithLoadBalancerName(Aws::String&& value) { SetLoadBalancerName(std::move(value)); return *this;}
78 
82  inline ConfigureHealthCheckRequest& WithLoadBalancerName(const char* value) { SetLoadBalancerName(value); return *this;}
83 
84 
88  inline const HealthCheck& GetHealthCheck() const{ return m_healthCheck; }
89 
93  inline bool HealthCheckHasBeenSet() const { return m_healthCheckHasBeenSet; }
94 
98  inline void SetHealthCheck(const HealthCheck& value) { m_healthCheckHasBeenSet = true; m_healthCheck = value; }
99 
103  inline void SetHealthCheck(HealthCheck&& value) { m_healthCheckHasBeenSet = true; m_healthCheck = std::move(value); }
104 
108  inline ConfigureHealthCheckRequest& WithHealthCheck(const HealthCheck& value) { SetHealthCheck(value); return *this;}
109 
113  inline ConfigureHealthCheckRequest& WithHealthCheck(HealthCheck&& value) { SetHealthCheck(std::move(value)); return *this;}
114 
115  private:
116 
117  Aws::String m_loadBalancerName;
118  bool m_loadBalancerNameHasBeenSet;
119 
120  HealthCheck m_healthCheck;
121  bool m_healthCheckHasBeenSet;
122  };
123 
124 } // namespace Model
125 } // namespace ElasticLoadBalancing
126 } // namespace Aws
ConfigureHealthCheckRequest & WithHealthCheck(const HealthCheck &value)
ConfigureHealthCheckRequest & WithLoadBalancerName(Aws::String &&value)
ConfigureHealthCheckRequest & WithLoadBalancerName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ConfigureHealthCheckRequest & WithHealthCheck(HealthCheck &&value)
#define AWS_ELASTICLOADBALANCING_API
ConfigureHealthCheckRequest & WithLoadBalancerName(const Aws::String &value)