/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Greengrass { namespace Model { class AssociateServiceRoleToAccountResult { public: AWS_GREENGRASS_API AssociateServiceRoleToAccountResult(); AWS_GREENGRASS_API AssociateServiceRoleToAccountResult(const Aws::AmazonWebServiceResult& result); AWS_GREENGRASS_API AssociateServiceRoleToAccountResult& operator=(const Aws::AmazonWebServiceResult& result); /** * The time when the service role was associated with the account. */ inline const Aws::String& GetAssociatedAt() const{ return m_associatedAt; } /** * The time when the service role was associated with the account. */ inline void SetAssociatedAt(const Aws::String& value) { m_associatedAt = value; } /** * The time when the service role was associated with the account. */ inline void SetAssociatedAt(Aws::String&& value) { m_associatedAt = std::move(value); } /** * The time when the service role was associated with the account. */ inline void SetAssociatedAt(const char* value) { m_associatedAt.assign(value); } /** * The time when the service role was associated with the account. */ inline AssociateServiceRoleToAccountResult& WithAssociatedAt(const Aws::String& value) { SetAssociatedAt(value); return *this;} /** * The time when the service role was associated with the account. */ inline AssociateServiceRoleToAccountResult& WithAssociatedAt(Aws::String&& value) { SetAssociatedAt(std::move(value)); return *this;} /** * The time when the service role was associated with the account. */ inline AssociateServiceRoleToAccountResult& WithAssociatedAt(const char* value) { SetAssociatedAt(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 AssociateServiceRoleToAccountResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline AssociateServiceRoleToAccountResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline AssociateServiceRoleToAccountResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_associatedAt; Aws::String m_requestId; }; } // namespace Model } // namespace Greengrass } // namespace Aws