/** * 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 GetLinkAttributesRequest : public CloudDirectoryRequest { public: AWS_CLOUDDIRECTORY_API GetLinkAttributesRequest(); // 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 "GetLinkAttributes"; } 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 where * the typed link resides. For more information, see arns or Typed * Links.

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

The Amazon Resource Name (ARN) that is associated with the Directory where * the typed link resides. For more information, see arns or Typed * Links.

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

The Amazon Resource Name (ARN) that is associated with the Directory where * the typed link resides. For more information, see arns or Typed * Links.

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

The Amazon Resource Name (ARN) that is associated with the Directory where * the typed link resides. For more information, see arns or Typed * Links.

*/ 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 where * the typed link resides. For more information, see arns or Typed * Links.

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

The Amazon Resource Name (ARN) that is associated with the Directory where * the typed link resides. For more information, see arns or Typed * Links.

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

The Amazon Resource Name (ARN) that is associated with the Directory where * the typed link resides. For more information, see arns or Typed * Links.

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

The Amazon Resource Name (ARN) that is associated with the Directory where * the typed link resides. For more information, see arns or Typed * Links.

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

Allows a typed link specifier to be accepted as input.

*/ inline const TypedLinkSpecifier& GetTypedLinkSpecifier() const{ return m_typedLinkSpecifier; } /** *

Allows a typed link specifier to be accepted as input.

*/ inline bool TypedLinkSpecifierHasBeenSet() const { return m_typedLinkSpecifierHasBeenSet; } /** *

Allows a typed link specifier to be accepted as input.

*/ inline void SetTypedLinkSpecifier(const TypedLinkSpecifier& value) { m_typedLinkSpecifierHasBeenSet = true; m_typedLinkSpecifier = value; } /** *

Allows a typed link specifier to be accepted as input.

*/ inline void SetTypedLinkSpecifier(TypedLinkSpecifier&& value) { m_typedLinkSpecifierHasBeenSet = true; m_typedLinkSpecifier = std::move(value); } /** *

Allows a typed link specifier to be accepted as input.

*/ inline GetLinkAttributesRequest& WithTypedLinkSpecifier(const TypedLinkSpecifier& value) { SetTypedLinkSpecifier(value); return *this;} /** *

Allows a typed link specifier to be accepted as input.

*/ inline GetLinkAttributesRequest& WithTypedLinkSpecifier(TypedLinkSpecifier&& value) { SetTypedLinkSpecifier(std::move(value)); return *this;} /** *

A list of attribute names whose values will be retrieved.

*/ inline const Aws::Vector& GetAttributeNames() const{ return m_attributeNames; } /** *

A list of attribute names whose values will be retrieved.

*/ inline bool AttributeNamesHasBeenSet() const { return m_attributeNamesHasBeenSet; } /** *

A list of attribute names whose values will be retrieved.

*/ inline void SetAttributeNames(const Aws::Vector& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = value; } /** *

A list of attribute names whose values will be retrieved.

*/ inline void SetAttributeNames(Aws::Vector&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = std::move(value); } /** *

A list of attribute names whose values will be retrieved.

*/ inline GetLinkAttributesRequest& WithAttributeNames(const Aws::Vector& value) { SetAttributeNames(value); return *this;} /** *

A list of attribute names whose values will be retrieved.

*/ inline GetLinkAttributesRequest& WithAttributeNames(Aws::Vector&& value) { SetAttributeNames(std::move(value)); return *this;} /** *

A list of attribute names whose values will be retrieved.

*/ inline GetLinkAttributesRequest& AddAttributeNames(const Aws::String& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(value); return *this; } /** *

A list of attribute names whose values will be retrieved.

*/ inline GetLinkAttributesRequest& AddAttributeNames(Aws::String&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(std::move(value)); return *this; } /** *

A list of attribute names whose values will be retrieved.

*/ inline GetLinkAttributesRequest& AddAttributeNames(const char* value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(value); return *this; } /** *

The consistency level at which to retrieve the attributes on a typed * link.

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

The consistency level at which to retrieve the attributes on a typed * link.

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

The consistency level at which to retrieve the attributes on a typed * link.

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

The consistency level at which to retrieve the attributes on a typed * link.

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

The consistency level at which to retrieve the attributes on a typed * link.

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

The consistency level at which to retrieve the attributes on a typed * link.

*/ inline GetLinkAttributesRequest& WithConsistencyLevel(ConsistencyLevel&& value) { SetConsistencyLevel(std::move(value)); return *this;} private: Aws::String m_directoryArn; bool m_directoryArnHasBeenSet = false; TypedLinkSpecifier m_typedLinkSpecifier; bool m_typedLinkSpecifierHasBeenSet = false; Aws::Vector m_attributeNames; bool m_attributeNamesHasBeenSet = false; ConsistencyLevel m_consistencyLevel; bool m_consistencyLevelHasBeenSet = false; }; } // namespace Model } // namespace CloudDirectory } // namespace Aws