/** * 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 DirectoryService { namespace Model { /** *

Contains the inputs for the CreateSnapshot operation.

See * Also:

AWS * API Reference

*/ class CreateSnapshotRequest : public DirectoryServiceRequest { public: AWS_DIRECTORYSERVICE_API CreateSnapshotRequest(); // 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 "CreateSnapshot"; } AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override; AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The identifier of the directory of which to take a snapshot.

*/ inline const Aws::String& GetDirectoryId() const{ return m_directoryId; } /** *

The identifier of the directory of which to take a snapshot.

*/ inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; } /** *

The identifier of the directory of which to take a snapshot.

*/ inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; } /** *

The identifier of the directory of which to take a snapshot.

*/ inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); } /** *

The identifier of the directory of which to take a snapshot.

*/ inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); } /** *

The identifier of the directory of which to take a snapshot.

*/ inline CreateSnapshotRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;} /** *

The identifier of the directory of which to take a snapshot.

*/ inline CreateSnapshotRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;} /** *

The identifier of the directory of which to take a snapshot.

*/ inline CreateSnapshotRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;} /** *

The descriptive name to apply to the snapshot.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The descriptive name to apply to the snapshot.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The descriptive name to apply to the snapshot.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The descriptive name to apply to the snapshot.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The descriptive name to apply to the snapshot.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The descriptive name to apply to the snapshot.

*/ inline CreateSnapshotRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The descriptive name to apply to the snapshot.

*/ inline CreateSnapshotRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The descriptive name to apply to the snapshot.

*/ inline CreateSnapshotRequest& WithName(const char* value) { SetName(value); return *this;} private: Aws::String m_directoryId; bool m_directoryIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; }; } // namespace Model } // namespace DirectoryService } // namespace Aws