/** * 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 { /** *

One or more targets associated with the event window.

See * Also:

AWS * API Reference

*/ class InstanceEventWindowAssociationTarget { public: AWS_EC2_API InstanceEventWindowAssociationTarget(); AWS_EC2_API InstanceEventWindowAssociationTarget(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API InstanceEventWindowAssociationTarget& 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 associated with the event window.

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

The IDs of the instances associated with the event window.

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

The IDs of the instances associated with the event window.

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

The IDs of the instances associated with the event window.

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

The IDs of the instances associated with the event window.

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

The IDs of the instances associated with the event window.

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

The IDs of the instances associated with the event window.

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

The IDs of the instances associated with the event window.

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

The IDs of the instances associated with the event window.

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

The instance tags associated with the event window. Any instances associated * with the tags will be associated with the event window.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The instance tags associated with the event window. Any instances associated * with the tags will be associated with the event window.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The instance tags associated with the event window. Any instances associated * with the tags will be associated with the event window.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The instance tags associated with the event window. Any instances associated * with the tags will be associated with the event window.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The instance tags associated with the event window. Any instances associated * with the tags will be associated with the event window.

*/ inline InstanceEventWindowAssociationTarget& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The instance tags associated with the event window. Any instances associated * with the tags will be associated with the event window.

*/ inline InstanceEventWindowAssociationTarget& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The instance tags associated with the event window. Any instances associated * with the tags will be associated with the event window.

*/ inline InstanceEventWindowAssociationTarget& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The instance tags associated with the event window. Any instances associated * with the tags will be associated with the event window.

*/ inline InstanceEventWindowAssociationTarget& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

The IDs of the Dedicated Hosts associated with the event window.

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

The IDs of the Dedicated Hosts associated with the event window.

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

The IDs of the Dedicated Hosts associated with the event window.

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

The IDs of the Dedicated Hosts associated with the event window.

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

The IDs of the Dedicated Hosts associated with the event window.

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

The IDs of the Dedicated Hosts associated with the event window.

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

The IDs of the Dedicated Hosts associated with the event window.

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

The IDs of the Dedicated Hosts associated with the event window.

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

The IDs of the Dedicated Hosts associated with the event window.

*/ inline InstanceEventWindowAssociationTarget& 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_tags; bool m_tagsHasBeenSet = false; Aws::Vector m_dedicatedHostIds; bool m_dedicatedHostIdsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws