/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace RAM { namespace Model { class CreatePermissionVersionResult { public: AWS_RAM_API CreatePermissionVersionResult(); AWS_RAM_API CreatePermissionVersionResult(const Aws::AmazonWebServiceResult& result); AWS_RAM_API CreatePermissionVersionResult& operator=(const Aws::AmazonWebServiceResult& result); inline const ResourceSharePermissionDetail& GetPermission() const{ return m_permission; } inline void SetPermission(const ResourceSharePermissionDetail& value) { m_permission = value; } inline void SetPermission(ResourceSharePermissionDetail&& value) { m_permission = std::move(value); } inline CreatePermissionVersionResult& WithPermission(const ResourceSharePermissionDetail& value) { SetPermission(value); return *this;} inline CreatePermissionVersionResult& WithPermission(ResourceSharePermissionDetail&& value) { SetPermission(std::move(value)); return *this;} /** *

The idempotency identifier associated with this request. If you want to * repeat the same operation in an idempotent manner then you must include this * value in the clientToken request parameter of that later call. All * other parameters must also have the same values that you used in the first * call.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

The idempotency identifier associated with this request. If you want to * repeat the same operation in an idempotent manner then you must include this * value in the clientToken request parameter of that later call. All * other parameters must also have the same values that you used in the first * call.

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

The idempotency identifier associated with this request. If you want to * repeat the same operation in an idempotent manner then you must include this * value in the clientToken request parameter of that later call. All * other parameters must also have the same values that you used in the first * call.

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

The idempotency identifier associated with this request. If you want to * repeat the same operation in an idempotent manner then you must include this * value in the clientToken request parameter of that later call. All * other parameters must also have the same values that you used in the first * call.

*/ inline void SetClientToken(const char* value) { m_clientToken.assign(value); } /** *

The idempotency identifier associated with this request. If you want to * repeat the same operation in an idempotent manner then you must include this * value in the clientToken request parameter of that later call. All * other parameters must also have the same values that you used in the first * call.

*/ inline CreatePermissionVersionResult& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

The idempotency identifier associated with this request. If you want to * repeat the same operation in an idempotent manner then you must include this * value in the clientToken request parameter of that later call. All * other parameters must also have the same values that you used in the first * call.

*/ inline CreatePermissionVersionResult& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

The idempotency identifier associated with this request. If you want to * repeat the same operation in an idempotent manner then you must include this * value in the clientToken request parameter of that later call. All * other parameters must also have the same values that you used in the first * call.

*/ inline CreatePermissionVersionResult& WithClientToken(const char* value) { SetClientToken(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 CreatePermissionVersionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreatePermissionVersionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreatePermissionVersionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: ResourceSharePermissionDetail m_permission; Aws::String m_clientToken; Aws::String m_requestId; }; } // namespace Model } // namespace RAM } // namespace Aws