AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RangedSocketAddress.h
1
6#pragma once
7#include <aws/groundstation/GroundStation_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/groundstation/model/IntegerRange.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GroundStation
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_GROUNDSTATION_API RangedSocketAddress();
36 AWS_GROUNDSTATION_API RangedSocketAddress(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GROUNDSTATION_API RangedSocketAddress& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GROUNDSTATION_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetName() const{ return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 inline RangedSocketAddress& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline RangedSocketAddress& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline RangedSocketAddress& WithName(const char* value) { SetName(value); return *this;}
54
56
59 inline const IntegerRange& GetPortRange() const{ return m_portRange; }
60 inline bool PortRangeHasBeenSet() const { return m_portRangeHasBeenSet; }
61 inline void SetPortRange(const IntegerRange& value) { m_portRangeHasBeenSet = true; m_portRange = value; }
62 inline void SetPortRange(IntegerRange&& value) { m_portRangeHasBeenSet = true; m_portRange = std::move(value); }
63 inline RangedSocketAddress& WithPortRange(const IntegerRange& value) { SetPortRange(value); return *this;}
64 inline RangedSocketAddress& WithPortRange(IntegerRange&& value) { SetPortRange(std::move(value)); return *this;}
66 private:
67
68 Aws::String m_name;
69 bool m_nameHasBeenSet = false;
70
71 IntegerRange m_portRange;
72 bool m_portRangeHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace GroundStation
77} // namespace Aws
RangedSocketAddress & WithPortRange(const IntegerRange &value)
AWS_GROUNDSTATION_API Aws::Utils::Json::JsonValue Jsonize() const
RangedSocketAddress & WithName(const char *value)
RangedSocketAddress & WithName(const Aws::String &value)
AWS_GROUNDSTATION_API RangedSocketAddress & operator=(Aws::Utils::Json::JsonView jsonValue)
RangedSocketAddress & WithPortRange(IntegerRange &&value)
AWS_GROUNDSTATION_API RangedSocketAddress(Aws::Utils::Json::JsonView jsonValue)
RangedSocketAddress & WithName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue