AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ResolverQueryLogConfigAssociation.h
1
6#pragma once
7#include <aws/route53resolver/Route53Resolver_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/route53resolver/model/ResolverQueryLogConfigAssociationStatus.h>
10#include <aws/route53resolver/model/ResolverQueryLogConfigAssociationError.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 Route53Resolver
24{
25namespace Model
26{
27
44 {
45 public:
46 AWS_ROUTE53RESOLVER_API ResolverQueryLogConfigAssociation() = default;
49 AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
56 inline const Aws::String& GetId() const { return m_id; }
57 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
58 template<typename IdT = Aws::String>
59 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
60 template<typename IdT = Aws::String>
61 ResolverQueryLogConfigAssociation& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
63
65
68 inline const Aws::String& GetResolverQueryLogConfigId() const { return m_resolverQueryLogConfigId; }
69 inline bool ResolverQueryLogConfigIdHasBeenSet() const { return m_resolverQueryLogConfigIdHasBeenSet; }
70 template<typename ResolverQueryLogConfigIdT = Aws::String>
71 void SetResolverQueryLogConfigId(ResolverQueryLogConfigIdT&& value) { m_resolverQueryLogConfigIdHasBeenSet = true; m_resolverQueryLogConfigId = std::forward<ResolverQueryLogConfigIdT>(value); }
72 template<typename ResolverQueryLogConfigIdT = Aws::String>
73 ResolverQueryLogConfigAssociation& WithResolverQueryLogConfigId(ResolverQueryLogConfigIdT&& value) { SetResolverQueryLogConfigId(std::forward<ResolverQueryLogConfigIdT>(value)); return *this;}
75
77
81 inline const Aws::String& GetResourceId() const { return m_resourceId; }
82 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
83 template<typename ResourceIdT = Aws::String>
84 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
85 template<typename ResourceIdT = Aws::String>
86 ResolverQueryLogConfigAssociation& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
88
90
101 inline ResolverQueryLogConfigAssociationStatus GetStatus() const { return m_status; }
102 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
103 inline void SetStatus(ResolverQueryLogConfigAssociationStatus value) { m_statusHasBeenSet = true; m_status = value; }
106
108
117 inline ResolverQueryLogConfigAssociationError GetError() const { return m_error; }
118 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
119 inline void SetError(ResolverQueryLogConfigAssociationError value) { m_errorHasBeenSet = true; m_error = value; }
122
124
129 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
130 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
131 template<typename ErrorMessageT = Aws::String>
132 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
133 template<typename ErrorMessageT = Aws::String>
134 ResolverQueryLogConfigAssociation& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
136
138
142 inline const Aws::String& GetCreationTime() const { return m_creationTime; }
143 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
144 template<typename CreationTimeT = Aws::String>
145 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
146 template<typename CreationTimeT = Aws::String>
147 ResolverQueryLogConfigAssociation& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
149 private:
150
151 Aws::String m_id;
152 bool m_idHasBeenSet = false;
153
154 Aws::String m_resolverQueryLogConfigId;
155 bool m_resolverQueryLogConfigIdHasBeenSet = false;
156
157 Aws::String m_resourceId;
158 bool m_resourceIdHasBeenSet = false;
159
161 bool m_statusHasBeenSet = false;
162
164 bool m_errorHasBeenSet = false;
165
166 Aws::String m_errorMessage;
167 bool m_errorMessageHasBeenSet = false;
168
169 Aws::String m_creationTime;
170 bool m_creationTimeHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace Route53Resolver
175} // namespace Aws
ResolverQueryLogConfigAssociation & WithError(ResolverQueryLogConfigAssociationError value)
AWS_ROUTE53RESOLVER_API ResolverQueryLogConfigAssociation(Aws::Utils::Json::JsonView jsonValue)
ResolverQueryLogConfigAssociation & WithCreationTime(CreationTimeT &&value)
ResolverQueryLogConfigAssociation & WithStatus(ResolverQueryLogConfigAssociationStatus value)
AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ROUTE53RESOLVER_API ResolverQueryLogConfigAssociation()=default
ResolverQueryLogConfigAssociation & WithResourceId(ResourceIdT &&value)
AWS_ROUTE53RESOLVER_API ResolverQueryLogConfigAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
ResolverQueryLogConfigAssociation & WithResolverQueryLogConfigId(ResolverQueryLogConfigIdT &&value)
ResolverQueryLogConfigAssociation & WithErrorMessage(ErrorMessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue