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

The attached ObjectIdentifier, which is the child * ObjectIdentifier.

*/ inline const Aws::String& GetAttachedObjectIdentifier() const{ return m_attachedObjectIdentifier; } /** *

The attached ObjectIdentifier, which is the child * ObjectIdentifier.

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

The attached ObjectIdentifier, which is the child * ObjectIdentifier.

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

The attached ObjectIdentifier, which is the child * ObjectIdentifier.

*/ inline void SetAttachedObjectIdentifier(const char* value) { m_attachedObjectIdentifier.assign(value); } /** *

The attached ObjectIdentifier, which is the child * ObjectIdentifier.

*/ inline AttachObjectResult& WithAttachedObjectIdentifier(const Aws::String& value) { SetAttachedObjectIdentifier(value); return *this;} /** *

The attached ObjectIdentifier, which is the child * ObjectIdentifier.

*/ inline AttachObjectResult& WithAttachedObjectIdentifier(Aws::String&& value) { SetAttachedObjectIdentifier(std::move(value)); return *this;} /** *

The attached ObjectIdentifier, which is the child * ObjectIdentifier.

*/ inline AttachObjectResult& WithAttachedObjectIdentifier(const char* value) { SetAttachedObjectIdentifier(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 AttachObjectResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline AttachObjectResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline AttachObjectResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_attachedObjectIdentifier; Aws::String m_requestId; }; } // namespace Model } // namespace CloudDirectory } // namespace Aws