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

The targets to disassociate from the specified event window.

See * Also:

AWS * API Reference

*/ class InstanceEventWindowDisassociationRequest { public: AWS_EC2_API InstanceEventWindowDisassociationRequest(); AWS_EC2_API InstanceEventWindowDisassociationRequest(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API InstanceEventWindowDisassociationRequest& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The IDs of the instances to disassociate from the event window.

*/ inline const Aws::Vector& GetInstanceIds() const{ return m_instanceIds; } /** *

The IDs of the instances to disassociate from the event window.

*/ inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; } /** *

The IDs of the instances to disassociate from the event window.

*/ inline void SetInstanceIds(const Aws::Vector& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; } /** *

The IDs of the instances to disassociate from the event window.

*/ inline void SetInstanceIds(Aws::Vector&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::move(value); } /** *

The IDs of the instances to disassociate from the event window.

*/ inline InstanceEventWindowDisassociationRequest& WithInstanceIds(const Aws::Vector& value) { SetInstanceIds(value); return *this;} /** *

The IDs of the instances to disassociate from the event window.

*/ inline InstanceEventWindowDisassociationRequest& WithInstanceIds(Aws::Vector&& value) { SetInstanceIds(std::move(value)); return *this;} /** *

The IDs of the instances to disassociate from the event window.

*/ inline InstanceEventWindowDisassociationRequest& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; } /** *

The IDs of the instances to disassociate from the event window.

*/ inline InstanceEventWindowDisassociationRequest& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(std::move(value)); return *this; } /** *

The IDs of the instances to disassociate from the event window.

*/ inline InstanceEventWindowDisassociationRequest& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; } /** *

The instance tags to disassociate from the event window. Any instances * associated with the tags will be disassociated from the event window.

*/ inline const Aws::Vector& GetInstanceTags() const{ return m_instanceTags; } /** *

The instance tags to disassociate from the event window. Any instances * associated with the tags will be disassociated from the event window.

*/ inline bool InstanceTagsHasBeenSet() const { return m_instanceTagsHasBeenSet; } /** *

The instance tags to disassociate from the event window. Any instances * associated with the tags will be disassociated from the event window.

*/ inline void SetInstanceTags(const Aws::Vector& value) { m_instanceTagsHasBeenSet = true; m_instanceTags = value; } /** *

The instance tags to disassociate from the event window. Any instances * associated with the tags will be disassociated from the event window.

*/ inline void SetInstanceTags(Aws::Vector&& value) { m_instanceTagsHasBeenSet = true; m_instanceTags = std::move(value); } /** *

The instance tags to disassociate from the event window. Any instances * associated with the tags will be disassociated from the event window.

*/ inline InstanceEventWindowDisassociationRequest& WithInstanceTags(const Aws::Vector& value) { SetInstanceTags(value); return *this;} /** *

The instance tags to disassociate from the event window. Any instances * associated with the tags will be disassociated from the event window.

*/ inline InstanceEventWindowDisassociationRequest& WithInstanceTags(Aws::Vector&& value) { SetInstanceTags(std::move(value)); return *this;} /** *

The instance tags to disassociate from the event window. Any instances * associated with the tags will be disassociated from the event window.

*/ inline InstanceEventWindowDisassociationRequest& AddInstanceTags(const Tag& value) { m_instanceTagsHasBeenSet = true; m_instanceTags.push_back(value); return *this; } /** *

The instance tags to disassociate from the event window. Any instances * associated with the tags will be disassociated from the event window.

*/ inline InstanceEventWindowDisassociationRequest& AddInstanceTags(Tag&& value) { m_instanceTagsHasBeenSet = true; m_instanceTags.push_back(std::move(value)); return *this; } /** *

The IDs of the Dedicated Hosts to disassociate from the event window.

*/ inline const Aws::Vector& GetDedicatedHostIds() const{ return m_dedicatedHostIds; } /** *

The IDs of the Dedicated Hosts to disassociate from the event window.

*/ inline bool DedicatedHostIdsHasBeenSet() const { return m_dedicatedHostIdsHasBeenSet; } /** *

The IDs of the Dedicated Hosts to disassociate from the event window.

*/ inline void SetDedicatedHostIds(const Aws::Vector& value) { m_dedicatedHostIdsHasBeenSet = true; m_dedicatedHostIds = value; } /** *

The IDs of the Dedicated Hosts to disassociate from the event window.

*/ inline void SetDedicatedHostIds(Aws::Vector&& value) { m_dedicatedHostIdsHasBeenSet = true; m_dedicatedHostIds = std::move(value); } /** *

The IDs of the Dedicated Hosts to disassociate from the event window.

*/ inline InstanceEventWindowDisassociationRequest& WithDedicatedHostIds(const Aws::Vector& value) { SetDedicatedHostIds(value); return *this;} /** *

The IDs of the Dedicated Hosts to disassociate from the event window.

*/ inline InstanceEventWindowDisassociationRequest& WithDedicatedHostIds(Aws::Vector&& value) { SetDedicatedHostIds(std::move(value)); return *this;} /** *

The IDs of the Dedicated Hosts to disassociate from the event window.

*/ inline InstanceEventWindowDisassociationRequest& AddDedicatedHostIds(const Aws::String& value) { m_dedicatedHostIdsHasBeenSet = true; m_dedicatedHostIds.push_back(value); return *this; } /** *

The IDs of the Dedicated Hosts to disassociate from the event window.

*/ inline InstanceEventWindowDisassociationRequest& AddDedicatedHostIds(Aws::String&& value) { m_dedicatedHostIdsHasBeenSet = true; m_dedicatedHostIds.push_back(std::move(value)); return *this; } /** *

The IDs of the Dedicated Hosts to disassociate from the event window.

*/ inline InstanceEventWindowDisassociationRequest& AddDedicatedHostIds(const char* value) { m_dedicatedHostIdsHasBeenSet = true; m_dedicatedHostIds.push_back(value); return *this; } private: Aws::Vector m_instanceIds; bool m_instanceIdsHasBeenSet = false; Aws::Vector m_instanceTags; bool m_instanceTagsHasBeenSet = false; Aws::Vector m_dedicatedHostIds; bool m_dedicatedHostIdsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws