/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace CloudDirectory { namespace Model { /** */ class BatchReadRequest : public CloudDirectoryRequest { public: AWS_CLOUDDIRECTORY_API BatchReadRequest(); // 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 "BatchRead"; } AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override; AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) that is associated with the Directory. * For more information, see arns.

*/ inline const Aws::String& GetDirectoryArn() const{ return m_directoryArn; } /** *

The Amazon Resource Name (ARN) that is associated with the Directory. * For more information, see arns.

*/ inline bool DirectoryArnHasBeenSet() const { return m_directoryArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) that is associated with the Directory. * For more information, see arns.

*/ inline void SetDirectoryArn(const Aws::String& value) { m_directoryArnHasBeenSet = true; m_directoryArn = value; } /** *

The Amazon Resource Name (ARN) that is associated with the Directory. * For more information, see arns.

*/ inline void SetDirectoryArn(Aws::String&& value) { m_directoryArnHasBeenSet = true; m_directoryArn = std::move(value); } /** *

The Amazon Resource Name (ARN) that is associated with the Directory. * For more information, see arns.

*/ inline void SetDirectoryArn(const char* value) { m_directoryArnHasBeenSet = true; m_directoryArn.assign(value); } /** *

The Amazon Resource Name (ARN) that is associated with the Directory. * For more information, see arns.

*/ inline BatchReadRequest& WithDirectoryArn(const Aws::String& value) { SetDirectoryArn(value); return *this;} /** *

The Amazon Resource Name (ARN) that is associated with the Directory. * For more information, see arns.

*/ inline BatchReadRequest& WithDirectoryArn(Aws::String&& value) { SetDirectoryArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) that is associated with the Directory. * For more information, see arns.

*/ inline BatchReadRequest& WithDirectoryArn(const char* value) { SetDirectoryArn(value); return *this;} /** *

A list of operations that are part of the batch.

*/ inline const Aws::Vector& GetOperations() const{ return m_operations; } /** *

A list of operations that are part of the batch.

*/ inline bool OperationsHasBeenSet() const { return m_operationsHasBeenSet; } /** *

A list of operations that are part of the batch.

*/ inline void SetOperations(const Aws::Vector& value) { m_operationsHasBeenSet = true; m_operations = value; } /** *

A list of operations that are part of the batch.

*/ inline void SetOperations(Aws::Vector&& value) { m_operationsHasBeenSet = true; m_operations = std::move(value); } /** *

A list of operations that are part of the batch.

*/ inline BatchReadRequest& WithOperations(const Aws::Vector& value) { SetOperations(value); return *this;} /** *

A list of operations that are part of the batch.

*/ inline BatchReadRequest& WithOperations(Aws::Vector&& value) { SetOperations(std::move(value)); return *this;} /** *

A list of operations that are part of the batch.

*/ inline BatchReadRequest& AddOperations(const BatchReadOperation& value) { m_operationsHasBeenSet = true; m_operations.push_back(value); return *this; } /** *

A list of operations that are part of the batch.

*/ inline BatchReadRequest& AddOperations(BatchReadOperation&& value) { m_operationsHasBeenSet = true; m_operations.push_back(std::move(value)); return *this; } /** *

Represents the manner and timing in which the successful write or update of * an object is reflected in a subsequent read operation of that same object.

*/ inline const ConsistencyLevel& GetConsistencyLevel() const{ return m_consistencyLevel; } /** *

Represents the manner and timing in which the successful write or update of * an object is reflected in a subsequent read operation of that same object.

*/ inline bool ConsistencyLevelHasBeenSet() const { return m_consistencyLevelHasBeenSet; } /** *

Represents the manner and timing in which the successful write or update of * an object is reflected in a subsequent read operation of that same object.

*/ inline void SetConsistencyLevel(const ConsistencyLevel& value) { m_consistencyLevelHasBeenSet = true; m_consistencyLevel = value; } /** *

Represents the manner and timing in which the successful write or update of * an object is reflected in a subsequent read operation of that same object.

*/ inline void SetConsistencyLevel(ConsistencyLevel&& value) { m_consistencyLevelHasBeenSet = true; m_consistencyLevel = std::move(value); } /** *

Represents the manner and timing in which the successful write or update of * an object is reflected in a subsequent read operation of that same object.

*/ inline BatchReadRequest& WithConsistencyLevel(const ConsistencyLevel& value) { SetConsistencyLevel(value); return *this;} /** *

Represents the manner and timing in which the successful write or update of * an object is reflected in a subsequent read operation of that same object.

*/ inline BatchReadRequest& WithConsistencyLevel(ConsistencyLevel&& value) { SetConsistencyLevel(std::move(value)); return *this;} private: Aws::String m_directoryArn; bool m_directoryArnHasBeenSet = false; Aws::Vector m_operations; bool m_operationsHasBeenSet = false; ConsistencyLevel m_consistencyLevel; bool m_consistencyLevelHasBeenSet = false; }; } // namespace Model } // namespace CloudDirectory } // namespace Aws