AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Target.h
1
6#pragma once
7#include <aws/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace VPCLattice
22{
23namespace Model
24{
25
31 class Target
32 {
33 public:
34 AWS_VPCLATTICE_API Target();
35 AWS_VPCLATTICE_API Target(Aws::Utils::Json::JsonView jsonValue);
36 AWS_VPCLATTICE_API Target& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
48 inline const Aws::String& GetId() const{ return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
51 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
52 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
53 inline Target& WithId(const Aws::String& value) { SetId(value); return *this;}
54 inline Target& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
55 inline Target& WithId(const char* value) { SetId(value); return *this;}
57
59
63 inline int GetPort() const{ return m_port; }
64 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
65 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
66 inline Target& WithPort(int value) { SetPort(value); return *this;}
68 private:
69
70 Aws::String m_id;
71 bool m_idHasBeenSet = false;
72
73 int m_port;
74 bool m_portHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace VPCLattice
79} // namespace Aws
void SetPort(int value)
Definition Target.h:65
AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_VPCLATTICE_API Target(Aws::Utils::Json::JsonView jsonValue)
void SetId(Aws::String &&value)
Definition Target.h:51
void SetId(const Aws::String &value)
Definition Target.h:50
const Aws::String & GetId() const
Definition Target.h:48
AWS_VPCLATTICE_API Target()
AWS_VPCLATTICE_API Target & operator=(Aws::Utils::Json::JsonView jsonValue)
Target & WithId(Aws::String &&value)
Definition Target.h:54
Target & WithPort(int value)
Definition Target.h:66
Target & WithId(const Aws::String &value)
Definition Target.h:53
bool PortHasBeenSet() const
Definition Target.h:64
Target & WithId(const char *value)
Definition Target.h:55
void SetId(const char *value)
Definition Target.h:52
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue