/** * 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 IoT { namespace Model { class TestAuthorizationResult { public: AWS_IOT_API TestAuthorizationResult(); AWS_IOT_API TestAuthorizationResult(const Aws::AmazonWebServiceResult& result); AWS_IOT_API TestAuthorizationResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The authentication results.

*/ inline const Aws::Vector& GetAuthResults() const{ return m_authResults; } /** *

The authentication results.

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

The authentication results.

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

The authentication results.

*/ inline TestAuthorizationResult& WithAuthResults(const Aws::Vector& value) { SetAuthResults(value); return *this;} /** *

The authentication results.

*/ inline TestAuthorizationResult& WithAuthResults(Aws::Vector&& value) { SetAuthResults(std::move(value)); return *this;} /** *

The authentication results.

*/ inline TestAuthorizationResult& AddAuthResults(const AuthResult& value) { m_authResults.push_back(value); return *this; } /** *

The authentication results.

*/ inline TestAuthorizationResult& AddAuthResults(AuthResult&& value) { m_authResults.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 TestAuthorizationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline TestAuthorizationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline TestAuthorizationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_authResults; Aws::String m_requestId; }; } // namespace Model } // namespace IoT } // namespace Aws