AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TunnelSummary.h
1
6#pragma once
7#include <aws/iotsecuretunneling/IoTSecureTunneling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iotsecuretunneling/model/TunnelStatus.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 IoTSecureTunneling
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_IOTSECURETUNNELING_API TunnelSummary() = default;
37 AWS_IOTSECURETUNNELING_API TunnelSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOTSECURETUNNELING_API TunnelSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTSECURETUNNELING_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetTunnelId() const { return m_tunnelId; }
47 inline bool TunnelIdHasBeenSet() const { return m_tunnelIdHasBeenSet; }
48 template<typename TunnelIdT = Aws::String>
49 void SetTunnelId(TunnelIdT&& value) { m_tunnelIdHasBeenSet = true; m_tunnelId = std::forward<TunnelIdT>(value); }
50 template<typename TunnelIdT = Aws::String>
51 TunnelSummary& WithTunnelId(TunnelIdT&& value) { SetTunnelId(std::forward<TunnelIdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetTunnelArn() const { return m_tunnelArn; }
59 inline bool TunnelArnHasBeenSet() const { return m_tunnelArnHasBeenSet; }
60 template<typename TunnelArnT = Aws::String>
61 void SetTunnelArn(TunnelArnT&& value) { m_tunnelArnHasBeenSet = true; m_tunnelArn = std::forward<TunnelArnT>(value); }
62 template<typename TunnelArnT = Aws::String>
63 TunnelSummary& WithTunnelArn(TunnelArnT&& value) { SetTunnelArn(std::forward<TunnelArnT>(value)); return *this;}
65
67
70 inline TunnelStatus GetStatus() const { return m_status; }
71 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
72 inline void SetStatus(TunnelStatus value) { m_statusHasBeenSet = true; m_status = value; }
73 inline TunnelSummary& WithStatus(TunnelStatus value) { SetStatus(value); return *this;}
75
77
80 inline const Aws::String& GetDescription() const { return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 template<typename DescriptionT = Aws::String>
83 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
84 template<typename DescriptionT = Aws::String>
85 TunnelSummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
87
89
92 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
93 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
94 template<typename CreatedAtT = Aws::Utils::DateTime>
95 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
96 template<typename CreatedAtT = Aws::Utils::DateTime>
97 TunnelSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
99
101
104 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
105 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
106 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
107 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
108 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
109 TunnelSummary& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
111 private:
112
113 Aws::String m_tunnelId;
114 bool m_tunnelIdHasBeenSet = false;
115
116 Aws::String m_tunnelArn;
117 bool m_tunnelArnHasBeenSet = false;
118
120 bool m_statusHasBeenSet = false;
121
122 Aws::String m_description;
123 bool m_descriptionHasBeenSet = false;
124
125 Aws::Utils::DateTime m_createdAt{};
126 bool m_createdAtHasBeenSet = false;
127
128 Aws::Utils::DateTime m_lastUpdatedAt{};
129 bool m_lastUpdatedAtHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace IoTSecureTunneling
134} // namespace Aws
TunnelSummary & WithStatus(TunnelStatus value)
const Aws::String & GetDescription() const
AWS_IOTSECURETUNNELING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTSECURETUNNELING_API TunnelSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
TunnelSummary & WithTunnelId(TunnelIdT &&value)
AWS_IOTSECURETUNNELING_API TunnelSummary()=default
const Aws::Utils::DateTime & GetLastUpdatedAt() const
AWS_IOTSECURETUNNELING_API TunnelSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetLastUpdatedAt(LastUpdatedAtT &&value)
TunnelSummary & WithCreatedAt(CreatedAtT &&value)
TunnelSummary & WithLastUpdatedAt(LastUpdatedAtT &&value)
TunnelSummary & WithTunnelArn(TunnelArnT &&value)
TunnelSummary & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue