/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace DirectoryService { namespace Model { /** *

Identifier that contains details about the directory consumer * account.

See Also:

AWS API * Reference

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

Identifier of the directory consumer account.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

Identifier of the directory consumer account.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

Identifier of the directory consumer account.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

Identifier of the directory consumer account.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

Identifier of the directory consumer account.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

Identifier of the directory consumer account.

*/ inline ShareTarget& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

Identifier of the directory consumer account.

*/ inline ShareTarget& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

Identifier of the directory consumer account.

*/ inline ShareTarget& WithId(const char* value) { SetId(value); return *this;} /** *

Type of identifier to be used in the Id field.

*/ inline const TargetType& GetType() const{ return m_type; } /** *

Type of identifier to be used in the Id field.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

Type of identifier to be used in the Id field.

*/ inline void SetType(const TargetType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

Type of identifier to be used in the Id field.

*/ inline void SetType(TargetType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

Type of identifier to be used in the Id field.

*/ inline ShareTarget& WithType(const TargetType& value) { SetType(value); return *this;} /** *

Type of identifier to be used in the Id field.

*/ inline ShareTarget& WithType(TargetType&& value) { SetType(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; TargetType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace DirectoryService } // namespace Aws