/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CloudDirectory { namespace Model { /** *

Directory structure that includes the directory name and directory * ARN.

See Also:

AWS * API Reference

*/ class Directory { public: AWS_CLOUDDIRECTORY_API Directory(); AWS_CLOUDDIRECTORY_API Directory(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDDIRECTORY_API Directory& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the directory.

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

The name of the directory.

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

The name of the directory.

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

The name of the directory.

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

The name of the directory.

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

The name of the directory.

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

The name of the directory.

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

The name of the directory.

*/ inline Directory& WithName(const char* value) { SetName(value); return *this;} /** *

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 Directory& 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 Directory& 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 Directory& WithDirectoryArn(const char* value) { SetDirectoryArn(value); return *this;} /** *

The state of the directory. Can be either Enabled, * Disabled, or Deleted.

*/ inline const DirectoryState& GetState() const{ return m_state; } /** *

The state of the directory. Can be either Enabled, * Disabled, or Deleted.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The state of the directory. Can be either Enabled, * Disabled, or Deleted.

*/ inline void SetState(const DirectoryState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The state of the directory. Can be either Enabled, * Disabled, or Deleted.

*/ inline void SetState(DirectoryState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The state of the directory. Can be either Enabled, * Disabled, or Deleted.

*/ inline Directory& WithState(const DirectoryState& value) { SetState(value); return *this;} /** *

The state of the directory. Can be either Enabled, * Disabled, or Deleted.

*/ inline Directory& WithState(DirectoryState&& value) { SetState(std::move(value)); return *this;} /** *

The date and time when the directory was created.

*/ inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; } /** *

The date and time when the directory was created.

*/ inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; } /** *

The date and time when the directory was created.

*/ inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; } /** *

The date and time when the directory was created.

*/ inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); } /** *

The date and time when the directory was created.

*/ inline Directory& WithCreationDateTime(const Aws::Utils::DateTime& value) { SetCreationDateTime(value); return *this;} /** *

The date and time when the directory was created.

*/ inline Directory& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_directoryArn; bool m_directoryArnHasBeenSet = false; DirectoryState m_state; bool m_stateHasBeenSet = false; Aws::Utils::DateTime m_creationDateTime; bool m_creationDateTimeHasBeenSet = false; }; } // namespace Model } // namespace CloudDirectory } // namespace Aws