AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RegisterTargetsRequest.h
1
6#pragma once
7#include <aws/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/vpc-lattice/VPCLatticeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/vpc-lattice/model/Target.h>
12#include <utility>
13
14namespace Aws
15{
16namespace VPCLattice
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_VPCLATTICE_API RegisterTargetsRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "RegisterTargets"; }
33
34 AWS_VPCLATTICE_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetTargetGroupIdentifier() const{ return m_targetGroupIdentifier; }
42 inline bool TargetGroupIdentifierHasBeenSet() const { return m_targetGroupIdentifierHasBeenSet; }
43 inline void SetTargetGroupIdentifier(const Aws::String& value) { m_targetGroupIdentifierHasBeenSet = true; m_targetGroupIdentifier = value; }
44 inline void SetTargetGroupIdentifier(Aws::String&& value) { m_targetGroupIdentifierHasBeenSet = true; m_targetGroupIdentifier = std::move(value); }
45 inline void SetTargetGroupIdentifier(const char* value) { m_targetGroupIdentifierHasBeenSet = true; m_targetGroupIdentifier.assign(value); }
47 inline RegisterTargetsRequest& WithTargetGroupIdentifier(Aws::String&& value) { SetTargetGroupIdentifier(std::move(value)); return *this;}
48 inline RegisterTargetsRequest& WithTargetGroupIdentifier(const char* value) { SetTargetGroupIdentifier(value); return *this;}
50
52
55 inline const Aws::Vector<Target>& GetTargets() const{ return m_targets; }
56 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
57 inline void SetTargets(const Aws::Vector<Target>& value) { m_targetsHasBeenSet = true; m_targets = value; }
58 inline void SetTargets(Aws::Vector<Target>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
59 inline RegisterTargetsRequest& WithTargets(const Aws::Vector<Target>& value) { SetTargets(value); return *this;}
60 inline RegisterTargetsRequest& WithTargets(Aws::Vector<Target>&& value) { SetTargets(std::move(value)); return *this;}
61 inline RegisterTargetsRequest& AddTargets(const Target& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
62 inline RegisterTargetsRequest& AddTargets(Target&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
64 private:
65
66 Aws::String m_targetGroupIdentifier;
67 bool m_targetGroupIdentifierHasBeenSet = false;
68
69 Aws::Vector<Target> m_targets;
70 bool m_targetsHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace VPCLattice
75} // namespace Aws
RegisterTargetsRequest & AddTargets(const Target &value)
RegisterTargetsRequest & WithTargetGroupIdentifier(Aws::String &&value)
RegisterTargetsRequest & WithTargets(const Aws::Vector< Target > &value)
AWS_VPCLATTICE_API Aws::String SerializePayload() const override
void SetTargets(Aws::Vector< Target > &&value)
virtual const char * GetServiceRequestName() const override
RegisterTargetsRequest & AddTargets(Target &&value)
RegisterTargetsRequest & WithTargetGroupIdentifier(const Aws::String &value)
RegisterTargetsRequest & WithTargets(Aws::Vector< Target > &&value)
void SetTargets(const Aws::Vector< Target > &value)
const Aws::Vector< Target > & GetTargets() const
void SetTargetGroupIdentifier(const Aws::String &value)
RegisterTargetsRequest & WithTargetGroupIdentifier(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector