/** * 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 CreateResourceShareResult { public: AWS_RAM_API CreateResourceShareResult(); AWS_RAM_API CreateResourceShareResult(const Aws::AmazonWebServiceResult& result); AWS_RAM_API CreateResourceShareResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

An object with information about the new resource share.

*/ inline const ResourceShare& GetResourceShare() const{ return m_resourceShare; } /** *

An object with information about the new resource share.

*/ inline void SetResourceShare(const ResourceShare& value) { m_resourceShare = value; } /** *

An object with information about the new resource share.

*/ inline void SetResourceShare(ResourceShare&& value) { m_resourceShare = std::move(value); } /** *

An object with information about the new resource share.

*/ inline CreateResourceShareResult& WithResourceShare(const ResourceShare& value) { SetResourceShare(value); return *this;} /** *

An object with information about the new resource share.

*/ inline CreateResourceShareResult& WithResourceShare(ResourceShare&& value) { SetResourceShare(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 CreateResourceShareResult& 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 CreateResourceShareResult& 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 CreateResourceShareResult& 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 CreateResourceShareResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateResourceShareResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateResourceShareResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: ResourceShare m_resourceShare; Aws::String m_clientToken; Aws::String m_requestId; }; } // namespace Model } // namespace RAM } // namespace Aws