/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace ECR { namespace Model { class GetAuthorizationTokenResult { public: AWS_ECR_API GetAuthorizationTokenResult(); AWS_ECR_API GetAuthorizationTokenResult(const Aws::AmazonWebServiceResult& result); AWS_ECR_API GetAuthorizationTokenResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A list of authorization token data objects that correspond to the * registryIds values in the request.

*/ inline const Aws::Vector& GetAuthorizationData() const{ return m_authorizationData; } /** *

A list of authorization token data objects that correspond to the * registryIds values in the request.

*/ inline void SetAuthorizationData(const Aws::Vector& value) { m_authorizationData = value; } /** *

A list of authorization token data objects that correspond to the * registryIds values in the request.

*/ inline void SetAuthorizationData(Aws::Vector&& value) { m_authorizationData = std::move(value); } /** *

A list of authorization token data objects that correspond to the * registryIds values in the request.

*/ inline GetAuthorizationTokenResult& WithAuthorizationData(const Aws::Vector& value) { SetAuthorizationData(value); return *this;} /** *

A list of authorization token data objects that correspond to the * registryIds values in the request.

*/ inline GetAuthorizationTokenResult& WithAuthorizationData(Aws::Vector&& value) { SetAuthorizationData(std::move(value)); return *this;} /** *

A list of authorization token data objects that correspond to the * registryIds values in the request.

*/ inline GetAuthorizationTokenResult& AddAuthorizationData(const AuthorizationData& value) { m_authorizationData.push_back(value); return *this; } /** *

A list of authorization token data objects that correspond to the * registryIds values in the request.

*/ inline GetAuthorizationTokenResult& AddAuthorizationData(AuthorizationData&& value) { m_authorizationData.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetAuthorizationTokenResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetAuthorizationTokenResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetAuthorizationTokenResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_authorizationData; Aws::String m_requestId; }; } // namespace Model } // namespace ECR } // namespace Aws