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

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

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

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

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

*/ inline UpdateLinkAttributesRequest& 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 UpdateLinkAttributesRequest& WithTypedLinkSpecifier(const TypedLinkSpecifier& value) { SetTypedLinkSpecifier(value); return *this;} /** *

Allows a typed link specifier to be accepted as input.

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

The attributes update structure.

*/ inline const Aws::Vector& GetAttributeUpdates() const{ return m_attributeUpdates; } /** *

The attributes update structure.

*/ inline bool AttributeUpdatesHasBeenSet() const { return m_attributeUpdatesHasBeenSet; } /** *

The attributes update structure.

*/ inline void SetAttributeUpdates(const Aws::Vector& value) { m_attributeUpdatesHasBeenSet = true; m_attributeUpdates = value; } /** *

The attributes update structure.

*/ inline void SetAttributeUpdates(Aws::Vector&& value) { m_attributeUpdatesHasBeenSet = true; m_attributeUpdates = std::move(value); } /** *

The attributes update structure.

*/ inline UpdateLinkAttributesRequest& WithAttributeUpdates(const Aws::Vector& value) { SetAttributeUpdates(value); return *this;} /** *

The attributes update structure.

*/ inline UpdateLinkAttributesRequest& WithAttributeUpdates(Aws::Vector&& value) { SetAttributeUpdates(std::move(value)); return *this;} /** *

The attributes update structure.

*/ inline UpdateLinkAttributesRequest& AddAttributeUpdates(const LinkAttributeUpdate& value) { m_attributeUpdatesHasBeenSet = true; m_attributeUpdates.push_back(value); return *this; } /** *

The attributes update structure.

*/ inline UpdateLinkAttributesRequest& AddAttributeUpdates(LinkAttributeUpdate&& value) { m_attributeUpdatesHasBeenSet = true; m_attributeUpdates.push_back(std::move(value)); return *this; } private: Aws::String m_directoryArn; bool m_directoryArnHasBeenSet = false; TypedLinkSpecifier m_typedLinkSpecifier; bool m_typedLinkSpecifierHasBeenSet = false; Aws::Vector m_attributeUpdates; bool m_attributeUpdatesHasBeenSet = false; }; } // namespace Model } // namespace CloudDirectory } // namespace Aws