AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
48 inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); }
49 inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
50 inline IpAddressMember& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
51 inline IpAddressMember& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;}
52 inline IpAddressMember& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
54
56
59 inline bool GetPrimary() const{ return m_primary; }
60 inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; }
61 inline void SetPrimary(bool value) { m_primaryHasBeenSet = true; m_primary = value; }
62 inline IpAddressMember& WithPrimary(bool value) { SetPrimary(value); return *this;}
64
66
69 inline const AllocationType& GetAllocationType() const{ return m_allocationType; }
70 inline bool AllocationTypeHasBeenSet() const { return m_allocationTypeHasBeenSet; }
71 inline void SetAllocationType(const AllocationType& value) { m_allocationTypeHasBeenSet = true; m_allocationType = value; }
72 inline void SetAllocationType(AllocationType&& value) { m_allocationTypeHasBeenSet = true; m_allocationType = std::move(value); }
73 inline IpAddressMember& WithAllocationType(const AllocationType& value) { SetAllocationType(value); return *this;}
74 inline IpAddressMember& WithAllocationType(AllocationType&& value) { SetAllocationType(std::move(value)); return *this;}
76 private:
77
78 Aws::String m_ipAddress;
79 bool m_ipAddressHasBeenSet = false;
80
81 bool m_primary;
82 bool m_primaryHasBeenSet = false;
83
84 AllocationType m_allocationType;
85 bool m_allocationTypeHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace SsmSap
90} // namespace Aws
AWS_SSMSAP_API IpAddressMember & operator=(Aws::Utils::Json::JsonView jsonValue)
IpAddressMember & WithAllocationType(AllocationType &&value)
IpAddressMember & WithAllocationType(const AllocationType &value)
IpAddressMember & WithIpAddress(const Aws::String &value)
IpAddressMember & WithPrimary(bool value)
IpAddressMember & WithIpAddress(const char *value)
void SetIpAddress(Aws::String &&value)
void SetIpAddress(const char *value)
AWS_SSMSAP_API IpAddressMember(Aws::Utils::Json::JsonView jsonValue)
const AllocationType & GetAllocationType() const
IpAddressMember & WithIpAddress(Aws::String &&value)
void SetAllocationType(AllocationType &&value)
void SetAllocationType(const AllocationType &value)
void SetIpAddress(const Aws::String &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