7#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/servicediscovery/model/OperationType.h>
10#include <aws/servicediscovery/model/OperationStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/servicediscovery/model/OperationTargetType.h>
26namespace ServiceDiscovery
52 template<
typename IdT = Aws::String>
53 void SetId(IdT&& value) { m_idHasBeenSet =
true; m_id = std::forward<IdT>(value); }
54 template<
typename IdT = Aws::String>
65 template<
typename OwnerAccountT = Aws::String>
66 void SetOwnerAccount(OwnerAccountT&& value) { m_ownerAccountHasBeenSet =
true; m_ownerAccount = std::forward<OwnerAccountT>(value); }
67 template<
typename OwnerAccountT = Aws::String>
103 template<
typename ErrorMessageT = Aws::String>
104 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet =
true; m_errorMessage = std::forward<ErrorMessageT>(value); }
105 template<
typename ErrorMessageT = Aws::String>
123 template<
typename ErrorCodeT = Aws::String>
124 void SetErrorCode(ErrorCodeT&& value) { m_errorCodeHasBeenSet =
true; m_errorCode = std::forward<ErrorCodeT>(value); }
125 template<
typename ErrorCodeT = Aws::String>
138 template<
typename CreateDateT = Aws::Utils::DateTime>
139 void SetCreateDate(CreateDateT&& value) { m_createDateHasBeenSet =
true; m_createDate = std::forward<CreateDateT>(value); }
140 template<
typename CreateDateT = Aws::Utils::DateTime>
154 template<
typename UpdateDateT = Aws::Utils::DateTime>
155 void SetUpdateDate(UpdateDateT&& value) { m_updateDateHasBeenSet =
true; m_updateDate = std::forward<UpdateDateT>(value); }
156 template<
typename UpdateDateT = Aws::Utils::DateTime>
171 template<
typename TargetsT = Aws::Map<OperationTargetType, Aws::String>>
172 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet =
true; m_targets = std::forward<TargetsT>(value); }
173 template<
typename TargetsT = Aws::Map<OperationTargetType, Aws::String>>
176 m_targetsHasBeenSet =
true; m_targets.emplace(key, value);
return *
this;
182 bool m_idHasBeenSet =
false;
185 bool m_ownerAccountHasBeenSet =
false;
188 bool m_typeHasBeenSet =
false;
191 bool m_statusHasBeenSet =
false;
194 bool m_errorMessageHasBeenSet =
false;
197 bool m_errorCodeHasBeenSet =
false;
200 bool m_createDateHasBeenSet =
false;
203 bool m_updateDateHasBeenSet =
false;
206 bool m_targetsHasBeenSet =
false;
const Aws::String & GetErrorCode() const
const Aws::Map< OperationTargetType, Aws::String > & GetTargets() const
void SetUpdateDate(UpdateDateT &&value)
OperationType GetType() const
bool ErrorCodeHasBeenSet() const
const Aws::String & GetErrorMessage() const
OperationStatus GetStatus() const
void SetOwnerAccount(OwnerAccountT &&value)
bool TargetsHasBeenSet() const
const Aws::String & GetId() const
Operation & WithTargets(TargetsT &&value)
Operation & WithType(OperationType value)
void SetTargets(TargetsT &&value)
bool ErrorMessageHasBeenSet() const
Operation & WithStatus(OperationStatus value)
bool IdHasBeenSet() const
void SetStatus(OperationStatus value)
void SetErrorMessage(ErrorMessageT &&value)
void SetType(OperationType value)
Operation & WithErrorMessage(ErrorMessageT &&value)
Operation & WithErrorCode(ErrorCodeT &&value)
Operation & WithCreateDate(CreateDateT &&value)
AWS_SERVICEDISCOVERY_API Operation & operator=(Aws::Utils::Json::JsonView jsonValue)
Operation & WithUpdateDate(UpdateDateT &&value)
const Aws::Utils::DateTime & GetCreateDate() const
bool CreateDateHasBeenSet() const
bool StatusHasBeenSet() const
bool OwnerAccountHasBeenSet() const
AWS_SERVICEDISCOVERY_API Operation(Aws::Utils::Json::JsonView jsonValue)
Operation & AddTargets(OperationTargetType key, Aws::String value)
Operation & WithOwnerAccount(OwnerAccountT &&value)
const Aws::String & GetOwnerAccount() const
bool UpdateDateHasBeenSet() const
const Aws::Utils::DateTime & GetUpdateDate() const
Operation & WithId(IdT &&value)
bool TypeHasBeenSet() const
AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SERVICEDISCOVERY_API Operation()=default
void SetCreateDate(CreateDateT &&value)
void SetErrorCode(ErrorCodeT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue