AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateTargetGroupRequest.h
1
6#pragma once
7#include <aws/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/vpc-lattice/VPCLatticeRequest.h>
9#include <aws/vpc-lattice/model/HealthCheckConfig.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace VPCLattice
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_VPCLATTICE_API UpdateTargetGroupRequest();
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 "UpdateTargetGroup"; }
32
33 AWS_VPCLATTICE_API Aws::String SerializePayload() const override;
34
35
37
40 inline const HealthCheckConfig& GetHealthCheck() const{ return m_healthCheck; }
41 inline bool HealthCheckHasBeenSet() const { return m_healthCheckHasBeenSet; }
42 inline void SetHealthCheck(const HealthCheckConfig& value) { m_healthCheckHasBeenSet = true; m_healthCheck = value; }
43 inline void SetHealthCheck(HealthCheckConfig&& value) { m_healthCheckHasBeenSet = true; m_healthCheck = std::move(value); }
44 inline UpdateTargetGroupRequest& WithHealthCheck(const HealthCheckConfig& value) { SetHealthCheck(value); return *this;}
45 inline UpdateTargetGroupRequest& WithHealthCheck(HealthCheckConfig&& value) { SetHealthCheck(std::move(value)); return *this;}
47
49
52 inline const Aws::String& GetTargetGroupIdentifier() const{ return m_targetGroupIdentifier; }
53 inline bool TargetGroupIdentifierHasBeenSet() const { return m_targetGroupIdentifierHasBeenSet; }
54 inline void SetTargetGroupIdentifier(const Aws::String& value) { m_targetGroupIdentifierHasBeenSet = true; m_targetGroupIdentifier = value; }
55 inline void SetTargetGroupIdentifier(Aws::String&& value) { m_targetGroupIdentifierHasBeenSet = true; m_targetGroupIdentifier = std::move(value); }
56 inline void SetTargetGroupIdentifier(const char* value) { m_targetGroupIdentifierHasBeenSet = true; m_targetGroupIdentifier.assign(value); }
59 inline UpdateTargetGroupRequest& WithTargetGroupIdentifier(const char* value) { SetTargetGroupIdentifier(value); return *this;}
61 private:
62
63 HealthCheckConfig m_healthCheck;
64 bool m_healthCheckHasBeenSet = false;
65
66 Aws::String m_targetGroupIdentifier;
67 bool m_targetGroupIdentifierHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace VPCLattice
72} // namespace Aws
UpdateTargetGroupRequest & WithTargetGroupIdentifier(const Aws::String &value)
void SetHealthCheck(const HealthCheckConfig &value)
virtual const char * GetServiceRequestName() const override
UpdateTargetGroupRequest & WithHealthCheck(HealthCheckConfig &&value)
UpdateTargetGroupRequest & WithTargetGroupIdentifier(const char *value)
AWS_VPCLATTICE_API Aws::String SerializePayload() const override
UpdateTargetGroupRequest & WithHealthCheck(const HealthCheckConfig &value)
UpdateTargetGroupRequest & WithTargetGroupIdentifier(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String