/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace CloudDirectory { namespace Model { /** */ class PutSchemaFromJsonRequest : public CloudDirectoryRequest { public: AWS_CLOUDDIRECTORY_API PutSchemaFromJsonRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "PutSchemaFromJson"; } AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override; AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ARN of the schema to update.

*/ inline const Aws::String& GetSchemaArn() const{ return m_schemaArn; } /** *

The ARN of the schema to update.

*/ inline bool SchemaArnHasBeenSet() const { return m_schemaArnHasBeenSet; } /** *

The ARN of the schema to update.

*/ inline void SetSchemaArn(const Aws::String& value) { m_schemaArnHasBeenSet = true; m_schemaArn = value; } /** *

The ARN of the schema to update.

*/ inline void SetSchemaArn(Aws::String&& value) { m_schemaArnHasBeenSet = true; m_schemaArn = std::move(value); } /** *

The ARN of the schema to update.

*/ inline void SetSchemaArn(const char* value) { m_schemaArnHasBeenSet = true; m_schemaArn.assign(value); } /** *

The ARN of the schema to update.

*/ inline PutSchemaFromJsonRequest& WithSchemaArn(const Aws::String& value) { SetSchemaArn(value); return *this;} /** *

The ARN of the schema to update.

*/ inline PutSchemaFromJsonRequest& WithSchemaArn(Aws::String&& value) { SetSchemaArn(std::move(value)); return *this;} /** *

The ARN of the schema to update.

*/ inline PutSchemaFromJsonRequest& WithSchemaArn(const char* value) { SetSchemaArn(value); return *this;} /** *

The replacement JSON schema.

*/ inline const Aws::String& GetDocument() const{ return m_document; } /** *

The replacement JSON schema.

*/ inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; } /** *

The replacement JSON schema.

*/ inline void SetDocument(const Aws::String& value) { m_documentHasBeenSet = true; m_document = value; } /** *

The replacement JSON schema.

*/ inline void SetDocument(Aws::String&& value) { m_documentHasBeenSet = true; m_document = std::move(value); } /** *

The replacement JSON schema.

*/ inline void SetDocument(const char* value) { m_documentHasBeenSet = true; m_document.assign(value); } /** *

The replacement JSON schema.

*/ inline PutSchemaFromJsonRequest& WithDocument(const Aws::String& value) { SetDocument(value); return *this;} /** *

The replacement JSON schema.

*/ inline PutSchemaFromJsonRequest& WithDocument(Aws::String&& value) { SetDocument(std::move(value)); return *this;} /** *

The replacement JSON schema.

*/ inline PutSchemaFromJsonRequest& WithDocument(const char* value) { SetDocument(value); return *this;} private: Aws::String m_schemaArn; bool m_schemaArnHasBeenSet = false; Aws::String m_document; bool m_documentHasBeenSet = false; }; } // namespace Model } // namespace CloudDirectory } // namespace Aws