AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename HealthCheckT = HealthCheckConfig>
43 void SetHealthCheck(HealthCheckT&& value) { m_healthCheckHasBeenSet = true; m_healthCheck = std::forward<HealthCheckT>(value); }
44 template<typename HealthCheckT = HealthCheckConfig>
45 UpdateTargetGroupRequest& WithHealthCheck(HealthCheckT&& value) { SetHealthCheck(std::forward<HealthCheckT>(value)); return *this;}
47
49
52 inline const Aws::String& GetTargetGroupIdentifier() const { return m_targetGroupIdentifier; }
53 inline bool TargetGroupIdentifierHasBeenSet() const { return m_targetGroupIdentifierHasBeenSet; }
54 template<typename TargetGroupIdentifierT = Aws::String>
55 void SetTargetGroupIdentifier(TargetGroupIdentifierT&& value) { m_targetGroupIdentifierHasBeenSet = true; m_targetGroupIdentifier = std::forward<TargetGroupIdentifierT>(value); }
56 template<typename TargetGroupIdentifierT = Aws::String>
57 UpdateTargetGroupRequest& WithTargetGroupIdentifier(TargetGroupIdentifierT&& value) { SetTargetGroupIdentifier(std::forward<TargetGroupIdentifierT>(value)); return *this;}
59 private:
60
61 HealthCheckConfig m_healthCheck;
62 bool m_healthCheckHasBeenSet = false;
63
64 Aws::String m_targetGroupIdentifier;
65 bool m_targetGroupIdentifierHasBeenSet = false;
66 };
67
68} // namespace Model
69} // namespace VPCLattice
70} // namespace Aws
void SetTargetGroupIdentifier(TargetGroupIdentifierT &&value)
virtual const char * GetServiceRequestName() const override
UpdateTargetGroupRequest & WithTargetGroupIdentifier(TargetGroupIdentifierT &&value)
AWS_VPCLATTICE_API UpdateTargetGroupRequest()=default
AWS_VPCLATTICE_API Aws::String SerializePayload() const override
UpdateTargetGroupRequest & WithHealthCheck(HealthCheckT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String