/** * 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 SSM { namespace Model { /** */ class DeleteAssociationRequest : public SSMRequest { public: AWS_SSM_API DeleteAssociationRequest(); // 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 "DeleteAssociation"; } AWS_SSM_API Aws::String SerializePayload() const override; AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the SSM document.

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

The name of the SSM document.

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

The name of the SSM document.

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

The name of the SSM document.

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

The name of the SSM document.

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

The name of the SSM document.

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

The name of the SSM document.

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

The name of the SSM document.

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

The managed node ID.

InstanceId has been * deprecated. To specify a managed node ID for an association, use the * Targets parameter. Requests that include the parameter * InstanceID with Systems Manager documents (SSM documents) that use * schema version 2.0 or later will fail. In addition, if you use the parameter * InstanceId, you can't use the parameters * AssociationName, DocumentVersion, * MaxErrors, MaxConcurrency, * OutputLocation, or ScheduleExpression. To use these * parameters, you must use the Targets parameter.

*/ inline const Aws::String& GetInstanceId() const{ return m_instanceId; } /** *

The managed node ID.

InstanceId has been * deprecated. To specify a managed node ID for an association, use the * Targets parameter. Requests that include the parameter * InstanceID with Systems Manager documents (SSM documents) that use * schema version 2.0 or later will fail. In addition, if you use the parameter * InstanceId, you can't use the parameters * AssociationName, DocumentVersion, * MaxErrors, MaxConcurrency, * OutputLocation, or ScheduleExpression. To use these * parameters, you must use the Targets parameter.

*/ inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } /** *

The managed node ID.

InstanceId has been * deprecated. To specify a managed node ID for an association, use the * Targets parameter. Requests that include the parameter * InstanceID with Systems Manager documents (SSM documents) that use * schema version 2.0 or later will fail. In addition, if you use the parameter * InstanceId, you can't use the parameters * AssociationName, DocumentVersion, * MaxErrors, MaxConcurrency, * OutputLocation, or ScheduleExpression. To use these * parameters, you must use the Targets parameter.

*/ inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; } /** *

The managed node ID.

InstanceId has been * deprecated. To specify a managed node ID for an association, use the * Targets parameter. Requests that include the parameter * InstanceID with Systems Manager documents (SSM documents) that use * schema version 2.0 or later will fail. In addition, if you use the parameter * InstanceId, you can't use the parameters * AssociationName, DocumentVersion, * MaxErrors, MaxConcurrency, * OutputLocation, or ScheduleExpression. To use these * parameters, you must use the Targets parameter.

*/ inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); } /** *

The managed node ID.

InstanceId has been * deprecated. To specify a managed node ID for an association, use the * Targets parameter. Requests that include the parameter * InstanceID with Systems Manager documents (SSM documents) that use * schema version 2.0 or later will fail. In addition, if you use the parameter * InstanceId, you can't use the parameters * AssociationName, DocumentVersion, * MaxErrors, MaxConcurrency, * OutputLocation, or ScheduleExpression. To use these * parameters, you must use the Targets parameter.

*/ inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); } /** *

The managed node ID.

InstanceId has been * deprecated. To specify a managed node ID for an association, use the * Targets parameter. Requests that include the parameter * InstanceID with Systems Manager documents (SSM documents) that use * schema version 2.0 or later will fail. In addition, if you use the parameter * InstanceId, you can't use the parameters * AssociationName, DocumentVersion, * MaxErrors, MaxConcurrency, * OutputLocation, or ScheduleExpression. To use these * parameters, you must use the Targets parameter.

*/ inline DeleteAssociationRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} /** *

The managed node ID.

InstanceId has been * deprecated. To specify a managed node ID for an association, use the * Targets parameter. Requests that include the parameter * InstanceID with Systems Manager documents (SSM documents) that use * schema version 2.0 or later will fail. In addition, if you use the parameter * InstanceId, you can't use the parameters * AssociationName, DocumentVersion, * MaxErrors, MaxConcurrency, * OutputLocation, or ScheduleExpression. To use these * parameters, you must use the Targets parameter.

*/ inline DeleteAssociationRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} /** *

The managed node ID.

InstanceId has been * deprecated. To specify a managed node ID for an association, use the * Targets parameter. Requests that include the parameter * InstanceID with Systems Manager documents (SSM documents) that use * schema version 2.0 or later will fail. In addition, if you use the parameter * InstanceId, you can't use the parameters * AssociationName, DocumentVersion, * MaxErrors, MaxConcurrency, * OutputLocation, or ScheduleExpression. To use these * parameters, you must use the Targets parameter.

*/ inline DeleteAssociationRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} /** *

The association ID that you want to delete.

*/ inline const Aws::String& GetAssociationId() const{ return m_associationId; } /** *

The association ID that you want to delete.

*/ inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; } /** *

The association ID that you want to delete.

*/ inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; } /** *

The association ID that you want to delete.

*/ inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); } /** *

The association ID that you want to delete.

*/ inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); } /** *

The association ID that you want to delete.

*/ inline DeleteAssociationRequest& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;} /** *

The association ID that you want to delete.

*/ inline DeleteAssociationRequest& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;} /** *

The association ID that you want to delete.

*/ inline DeleteAssociationRequest& WithAssociationId(const char* value) { SetAssociationId(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_instanceId; bool m_instanceIdHasBeenSet = false; Aws::String m_associationId; bool m_associationIdHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws