AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename IdT = Aws::String>
51 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
52 template<typename IdT = Aws::String>
53 Target& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
55
57
61 inline int GetPort() const { return m_port; }
62 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
63 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
64 inline Target& WithPort(int value) { SetPort(value); return *this;}
66 private:
67
68 Aws::String m_id;
69 bool m_idHasBeenSet = false;
70
71 int m_port{0};
72 bool m_portHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace VPCLattice
77} // namespace Aws
void SetPort(int value)
Definition Target.h:63
void SetId(IdT &&value)
Definition Target.h:51
AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_VPCLATTICE_API Target(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetId() const
Definition Target.h:48
AWS_VPCLATTICE_API Target & operator=(Aws::Utils::Json::JsonView jsonValue)
Target & WithPort(int value)
Definition Target.h:64
bool PortHasBeenSet() const
Definition Target.h:62
Target & WithId(IdT &&value)
Definition Target.h:53
AWS_VPCLATTICE_API Target()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue