AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Gateway.h
1
6#pragma once
7#include <aws/backup-gateway/BackupGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/backup-gateway/model/GatewayType.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BackupGateway
24{
25namespace Model
26{
27
35 class Gateway
36 {
37 public:
38 AWS_BACKUPGATEWAY_API Gateway();
39 AWS_BACKUPGATEWAY_API Gateway(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BACKUPGATEWAY_API Gateway& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BACKUPGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
50 inline const Aws::String& GetGatewayArn() const{ return m_gatewayArn; }
51 inline bool GatewayArnHasBeenSet() const { return m_gatewayArnHasBeenSet; }
52 inline void SetGatewayArn(const Aws::String& value) { m_gatewayArnHasBeenSet = true; m_gatewayArn = value; }
53 inline void SetGatewayArn(Aws::String&& value) { m_gatewayArnHasBeenSet = true; m_gatewayArn = std::move(value); }
54 inline void SetGatewayArn(const char* value) { m_gatewayArnHasBeenSet = true; m_gatewayArn.assign(value); }
55 inline Gateway& WithGatewayArn(const Aws::String& value) { SetGatewayArn(value); return *this;}
56 inline Gateway& WithGatewayArn(Aws::String&& value) { SetGatewayArn(std::move(value)); return *this;}
57 inline Gateway& WithGatewayArn(const char* value) { SetGatewayArn(value); return *this;}
59
61
64 inline const Aws::String& GetGatewayDisplayName() const{ return m_gatewayDisplayName; }
65 inline bool GatewayDisplayNameHasBeenSet() const { return m_gatewayDisplayNameHasBeenSet; }
66 inline void SetGatewayDisplayName(const Aws::String& value) { m_gatewayDisplayNameHasBeenSet = true; m_gatewayDisplayName = value; }
67 inline void SetGatewayDisplayName(Aws::String&& value) { m_gatewayDisplayNameHasBeenSet = true; m_gatewayDisplayName = std::move(value); }
68 inline void SetGatewayDisplayName(const char* value) { m_gatewayDisplayNameHasBeenSet = true; m_gatewayDisplayName.assign(value); }
69 inline Gateway& WithGatewayDisplayName(const Aws::String& value) { SetGatewayDisplayName(value); return *this;}
70 inline Gateway& WithGatewayDisplayName(Aws::String&& value) { SetGatewayDisplayName(std::move(value)); return *this;}
71 inline Gateway& WithGatewayDisplayName(const char* value) { SetGatewayDisplayName(value); return *this;}
73
75
78 inline const GatewayType& GetGatewayType() const{ return m_gatewayType; }
79 inline bool GatewayTypeHasBeenSet() const { return m_gatewayTypeHasBeenSet; }
80 inline void SetGatewayType(const GatewayType& value) { m_gatewayTypeHasBeenSet = true; m_gatewayType = value; }
81 inline void SetGatewayType(GatewayType&& value) { m_gatewayTypeHasBeenSet = true; m_gatewayType = std::move(value); }
82 inline Gateway& WithGatewayType(const GatewayType& value) { SetGatewayType(value); return *this;}
83 inline Gateway& WithGatewayType(GatewayType&& value) { SetGatewayType(std::move(value)); return *this;}
85
87
90 inline const Aws::String& GetHypervisorId() const{ return m_hypervisorId; }
91 inline bool HypervisorIdHasBeenSet() const { return m_hypervisorIdHasBeenSet; }
92 inline void SetHypervisorId(const Aws::String& value) { m_hypervisorIdHasBeenSet = true; m_hypervisorId = value; }
93 inline void SetHypervisorId(Aws::String&& value) { m_hypervisorIdHasBeenSet = true; m_hypervisorId = std::move(value); }
94 inline void SetHypervisorId(const char* value) { m_hypervisorIdHasBeenSet = true; m_hypervisorId.assign(value); }
95 inline Gateway& WithHypervisorId(const Aws::String& value) { SetHypervisorId(value); return *this;}
96 inline Gateway& WithHypervisorId(Aws::String&& value) { SetHypervisorId(std::move(value)); return *this;}
97 inline Gateway& WithHypervisorId(const char* value) { SetHypervisorId(value); return *this;}
99
101
105 inline const Aws::Utils::DateTime& GetLastSeenTime() const{ return m_lastSeenTime; }
106 inline bool LastSeenTimeHasBeenSet() const { return m_lastSeenTimeHasBeenSet; }
107 inline void SetLastSeenTime(const Aws::Utils::DateTime& value) { m_lastSeenTimeHasBeenSet = true; m_lastSeenTime = value; }
108 inline void SetLastSeenTime(Aws::Utils::DateTime&& value) { m_lastSeenTimeHasBeenSet = true; m_lastSeenTime = std::move(value); }
109 inline Gateway& WithLastSeenTime(const Aws::Utils::DateTime& value) { SetLastSeenTime(value); return *this;}
110 inline Gateway& WithLastSeenTime(Aws::Utils::DateTime&& value) { SetLastSeenTime(std::move(value)); return *this;}
112 private:
113
114 Aws::String m_gatewayArn;
115 bool m_gatewayArnHasBeenSet = false;
116
117 Aws::String m_gatewayDisplayName;
118 bool m_gatewayDisplayNameHasBeenSet = false;
119
120 GatewayType m_gatewayType;
121 bool m_gatewayTypeHasBeenSet = false;
122
123 Aws::String m_hypervisorId;
124 bool m_hypervisorIdHasBeenSet = false;
125
126 Aws::Utils::DateTime m_lastSeenTime;
127 bool m_lastSeenTimeHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace BackupGateway
132} // namespace Aws
Gateway & WithGatewayArn(const Aws::String &value)
Definition Gateway.h:55
Gateway & WithGatewayDisplayName(const Aws::String &value)
Definition Gateway.h:69
AWS_BACKUPGATEWAY_API Gateway & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetGatewayArn(const Aws::String &value)
Definition Gateway.h:52
const Aws::String & GetGatewayDisplayName() const
Definition Gateway.h:64
void SetGatewayType(const GatewayType &value)
Definition Gateway.h:80
AWS_BACKUPGATEWAY_API Gateway()
const Aws::String & GetGatewayArn() const
Definition Gateway.h:50
Gateway & WithGatewayArn(Aws::String &&value)
Definition Gateway.h:56
void SetGatewayArn(const char *value)
Definition Gateway.h:54
AWS_BACKUPGATEWAY_API Gateway(Aws::Utils::Json::JsonView jsonValue)
Gateway & WithLastSeenTime(const Aws::Utils::DateTime &value)
Definition Gateway.h:109
void SetGatewayType(GatewayType &&value)
Definition Gateway.h:81
const GatewayType & GetGatewayType() const
Definition Gateway.h:78
const Aws::String & GetHypervisorId() const
Definition Gateway.h:90
Gateway & WithGatewayType(GatewayType &&value)
Definition Gateway.h:83
void SetHypervisorId(Aws::String &&value)
Definition Gateway.h:93
void SetHypervisorId(const Aws::String &value)
Definition Gateway.h:92
void SetLastSeenTime(const Aws::Utils::DateTime &value)
Definition Gateway.h:107
Gateway & WithGatewayArn(const char *value)
Definition Gateway.h:57
AWS_BACKUPGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
Gateway & WithGatewayDisplayName(Aws::String &&value)
Definition Gateway.h:70
Gateway & WithHypervisorId(const Aws::String &value)
Definition Gateway.h:95
void SetGatewayDisplayName(Aws::String &&value)
Definition Gateway.h:67
void SetGatewayDisplayName(const Aws::String &value)
Definition Gateway.h:66
void SetHypervisorId(const char *value)
Definition Gateway.h:94
bool GatewayDisplayNameHasBeenSet() const
Definition Gateway.h:65
Gateway & WithHypervisorId(const char *value)
Definition Gateway.h:97
const Aws::Utils::DateTime & GetLastSeenTime() const
Definition Gateway.h:105
void SetGatewayArn(Aws::String &&value)
Definition Gateway.h:53
Gateway & WithGatewayType(const GatewayType &value)
Definition Gateway.h:82
void SetLastSeenTime(Aws::Utils::DateTime &&value)
Definition Gateway.h:108
Gateway & WithGatewayDisplayName(const char *value)
Definition Gateway.h:71
void SetGatewayDisplayName(const char *value)
Definition Gateway.h:68
Gateway & WithLastSeenTime(Aws::Utils::DateTime &&value)
Definition Gateway.h:110
Gateway & WithHypervisorId(Aws::String &&value)
Definition Gateway.h:96
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue