1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/apigatewaymanagementapi/ApiGatewayManagementApi_EXPORTS.h>
8 #include <aws/core/utils/DateTime.h>
9 #include <aws/apigatewaymanagementapi/model/Identity.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21   class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace ApiGatewayManagementApi
25 {
26 namespace Model
27 {
28   class AWS_APIGATEWAYMANAGEMENTAPI_API GetConnectionResult
29   {
30   public:
31     GetConnectionResult();
32     GetConnectionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
33     GetConnectionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
34 
35 
36     /**
37      * <p>The time in ISO 8601 format for when the connection was established.</p>
38      */
GetConnectedAt()39     inline const Aws::Utils::DateTime& GetConnectedAt() const{ return m_connectedAt; }
40 
41     /**
42      * <p>The time in ISO 8601 format for when the connection was established.</p>
43      */
SetConnectedAt(const Aws::Utils::DateTime & value)44     inline void SetConnectedAt(const Aws::Utils::DateTime& value) { m_connectedAt = value; }
45 
46     /**
47      * <p>The time in ISO 8601 format for when the connection was established.</p>
48      */
SetConnectedAt(Aws::Utils::DateTime && value)49     inline void SetConnectedAt(Aws::Utils::DateTime&& value) { m_connectedAt = std::move(value); }
50 
51     /**
52      * <p>The time in ISO 8601 format for when the connection was established.</p>
53      */
WithConnectedAt(const Aws::Utils::DateTime & value)54     inline GetConnectionResult& WithConnectedAt(const Aws::Utils::DateTime& value) { SetConnectedAt(value); return *this;}
55 
56     /**
57      * <p>The time in ISO 8601 format for when the connection was established.</p>
58      */
WithConnectedAt(Aws::Utils::DateTime && value)59     inline GetConnectionResult& WithConnectedAt(Aws::Utils::DateTime&& value) { SetConnectedAt(std::move(value)); return *this;}
60 
61 
62 
GetIdentity()63     inline const Identity& GetIdentity() const{ return m_identity; }
64 
65 
SetIdentity(const Identity & value)66     inline void SetIdentity(const Identity& value) { m_identity = value; }
67 
68 
SetIdentity(Identity && value)69     inline void SetIdentity(Identity&& value) { m_identity = std::move(value); }
70 
71 
WithIdentity(const Identity & value)72     inline GetConnectionResult& WithIdentity(const Identity& value) { SetIdentity(value); return *this;}
73 
74 
WithIdentity(Identity && value)75     inline GetConnectionResult& WithIdentity(Identity&& value) { SetIdentity(std::move(value)); return *this;}
76 
77 
78     /**
79      * <p>The time in ISO 8601 format for when the connection was last active.</p>
80      */
GetLastActiveAt()81     inline const Aws::Utils::DateTime& GetLastActiveAt() const{ return m_lastActiveAt; }
82 
83     /**
84      * <p>The time in ISO 8601 format for when the connection was last active.</p>
85      */
SetLastActiveAt(const Aws::Utils::DateTime & value)86     inline void SetLastActiveAt(const Aws::Utils::DateTime& value) { m_lastActiveAt = value; }
87 
88     /**
89      * <p>The time in ISO 8601 format for when the connection was last active.</p>
90      */
SetLastActiveAt(Aws::Utils::DateTime && value)91     inline void SetLastActiveAt(Aws::Utils::DateTime&& value) { m_lastActiveAt = std::move(value); }
92 
93     /**
94      * <p>The time in ISO 8601 format for when the connection was last active.</p>
95      */
WithLastActiveAt(const Aws::Utils::DateTime & value)96     inline GetConnectionResult& WithLastActiveAt(const Aws::Utils::DateTime& value) { SetLastActiveAt(value); return *this;}
97 
98     /**
99      * <p>The time in ISO 8601 format for when the connection was last active.</p>
100      */
WithLastActiveAt(Aws::Utils::DateTime && value)101     inline GetConnectionResult& WithLastActiveAt(Aws::Utils::DateTime&& value) { SetLastActiveAt(std::move(value)); return *this;}
102 
103   private:
104 
105     Aws::Utils::DateTime m_connectedAt;
106 
107     Identity m_identity;
108 
109     Aws::Utils::DateTime m_lastActiveAt;
110   };
111 
112 } // namespace Model
113 } // namespace ApiGatewayManagementApi
114 } // namespace Aws
115