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

The resource policy for the model group.

*/ inline const Aws::String& GetResourcePolicy() const{ return m_resourcePolicy; } /** *

The resource policy for the model group.

*/ inline void SetResourcePolicy(const Aws::String& value) { m_resourcePolicy = value; } /** *

The resource policy for the model group.

*/ inline void SetResourcePolicy(Aws::String&& value) { m_resourcePolicy = std::move(value); } /** *

The resource policy for the model group.

*/ inline void SetResourcePolicy(const char* value) { m_resourcePolicy.assign(value); } /** *

The resource policy for the model group.

*/ inline GetModelPackageGroupPolicyResult& WithResourcePolicy(const Aws::String& value) { SetResourcePolicy(value); return *this;} /** *

The resource policy for the model group.

*/ inline GetModelPackageGroupPolicyResult& WithResourcePolicy(Aws::String&& value) { SetResourcePolicy(std::move(value)); return *this;} /** *

The resource policy for the model group.

*/ inline GetModelPackageGroupPolicyResult& WithResourcePolicy(const char* value) { SetResourcePolicy(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 GetModelPackageGroupPolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetModelPackageGroupPolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetModelPackageGroupPolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_resourcePolicy; Aws::String m_requestId; }; } // namespace Model } // namespace SageMaker } // namespace Aws