AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
IpAddressMember.h
1
6#pragma once
7#include <aws/ssm-sap/SsmSap_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm-sap/model/AllocationType.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 SsmSap
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_SSMSAP_API IpAddressMember() = default;
38 AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
46 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
47 template<typename IpAddressT = Aws::String>
48 void SetIpAddress(IpAddressT&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::forward<IpAddressT>(value); }
49 template<typename IpAddressT = Aws::String>
50 IpAddressMember& WithIpAddress(IpAddressT&& value) { SetIpAddress(std::forward<IpAddressT>(value)); return *this;}
52
54
57 inline bool GetPrimary() const { return m_primary; }
58 inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; }
59 inline void SetPrimary(bool value) { m_primaryHasBeenSet = true; m_primary = value; }
60 inline IpAddressMember& WithPrimary(bool value) { SetPrimary(value); return *this;}
62
64
67 inline AllocationType GetAllocationType() const { return m_allocationType; }
68 inline bool AllocationTypeHasBeenSet() const { return m_allocationTypeHasBeenSet; }
69 inline void SetAllocationType(AllocationType value) { m_allocationTypeHasBeenSet = true; m_allocationType = value; }
72 private:
73
74 Aws::String m_ipAddress;
75 bool m_ipAddressHasBeenSet = false;
76
77 bool m_primary{false};
78 bool m_primaryHasBeenSet = false;
79
81 bool m_allocationTypeHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace SsmSap
86} // namespace Aws
AWS_SSMSAP_API IpAddressMember & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIpAddress(IpAddressT &&value)
IpAddressMember & WithPrimary(bool value)
AWS_SSMSAP_API IpAddressMember()=default
IpAddressMember & WithIpAddress(IpAddressT &&value)
IpAddressMember & WithAllocationType(AllocationType value)
AWS_SSMSAP_API IpAddressMember(Aws::Utils::Json::JsonView jsonValue)
AllocationType GetAllocationType() const
void SetAllocationType(AllocationType value)
const Aws::String & GetIpAddress() const
AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue