AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AccessLogSubscriptionSummary.h
1
6#pragma once
7#include <aws/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/vpc-lattice/model/ServiceNetworkLogType.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 VPCLattice
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_VPCLATTICE_API AccessLogSubscriptionSummary() = default;
40 AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetArn() const { return m_arn; }
48 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
49 template<typename ArnT = Aws::String>
50 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
51 template<typename ArnT = Aws::String>
52 AccessLogSubscriptionSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
54
56
60 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
61 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
62 template<typename CreatedAtT = Aws::Utils::DateTime>
63 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
64 template<typename CreatedAtT = Aws::Utils::DateTime>
65 AccessLogSubscriptionSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
67
69
72 inline const Aws::String& GetDestinationArn() const { return m_destinationArn; }
73 inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; }
74 template<typename DestinationArnT = Aws::String>
75 void SetDestinationArn(DestinationArnT&& value) { m_destinationArnHasBeenSet = true; m_destinationArn = std::forward<DestinationArnT>(value); }
76 template<typename DestinationArnT = Aws::String>
77 AccessLogSubscriptionSummary& WithDestinationArn(DestinationArnT&& value) { SetDestinationArn(std::forward<DestinationArnT>(value)); return *this;}
79
81
84 inline const Aws::String& GetId() const { return m_id; }
85 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
86 template<typename IdT = Aws::String>
87 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
88 template<typename IdT = Aws::String>
89 AccessLogSubscriptionSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
91
93
97 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
98 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
99 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
100 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
101 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
102 AccessLogSubscriptionSummary& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
104
106
109 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
110 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
111 template<typename ResourceArnT = Aws::String>
112 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
113 template<typename ResourceArnT = Aws::String>
114 AccessLogSubscriptionSummary& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
116
118
121 inline const Aws::String& GetResourceId() const { return m_resourceId; }
122 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
123 template<typename ResourceIdT = Aws::String>
124 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
125 template<typename ResourceIdT = Aws::String>
126 AccessLogSubscriptionSummary& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
128
130
133 inline ServiceNetworkLogType GetServiceNetworkLogType() const { return m_serviceNetworkLogType; }
134 inline bool ServiceNetworkLogTypeHasBeenSet() const { return m_serviceNetworkLogTypeHasBeenSet; }
135 inline void SetServiceNetworkLogType(ServiceNetworkLogType value) { m_serviceNetworkLogTypeHasBeenSet = true; m_serviceNetworkLogType = value; }
138 private:
139
140 Aws::String m_arn;
141 bool m_arnHasBeenSet = false;
142
143 Aws::Utils::DateTime m_createdAt{};
144 bool m_createdAtHasBeenSet = false;
145
146 Aws::String m_destinationArn;
147 bool m_destinationArnHasBeenSet = false;
148
149 Aws::String m_id;
150 bool m_idHasBeenSet = false;
151
152 Aws::Utils::DateTime m_lastUpdatedAt{};
153 bool m_lastUpdatedAtHasBeenSet = false;
154
155 Aws::String m_resourceArn;
156 bool m_resourceArnHasBeenSet = false;
157
158 Aws::String m_resourceId;
159 bool m_resourceIdHasBeenSet = false;
160
162 bool m_serviceNetworkLogTypeHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace VPCLattice
167} // namespace Aws
AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_VPCLATTICE_API AccessLogSubscriptionSummary(Aws::Utils::Json::JsonView jsonValue)
AccessLogSubscriptionSummary & WithServiceNetworkLogType(ServiceNetworkLogType value)
AWS_VPCLATTICE_API AccessLogSubscriptionSummary()=default
AccessLogSubscriptionSummary & WithLastUpdatedAt(LastUpdatedAtT &&value)
AccessLogSubscriptionSummary & WithCreatedAt(CreatedAtT &&value)
AccessLogSubscriptionSummary & WithResourceArn(ResourceArnT &&value)
AccessLogSubscriptionSummary & WithDestinationArn(DestinationArnT &&value)
AWS_VPCLATTICE_API AccessLogSubscriptionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AccessLogSubscriptionSummary & WithArn(ArnT &&value)
AccessLogSubscriptionSummary & WithResourceId(ResourceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue