/** * 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 Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes a set of DHCP options.

See Also:

AWS API * Reference

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

One or more DHCP options in the set.

*/ inline const Aws::Vector& GetDhcpConfigurations() const{ return m_dhcpConfigurations; } /** *

One or more DHCP options in the set.

*/ inline bool DhcpConfigurationsHasBeenSet() const { return m_dhcpConfigurationsHasBeenSet; } /** *

One or more DHCP options in the set.

*/ inline void SetDhcpConfigurations(const Aws::Vector& value) { m_dhcpConfigurationsHasBeenSet = true; m_dhcpConfigurations = value; } /** *

One or more DHCP options in the set.

*/ inline void SetDhcpConfigurations(Aws::Vector&& value) { m_dhcpConfigurationsHasBeenSet = true; m_dhcpConfigurations = std::move(value); } /** *

One or more DHCP options in the set.

*/ inline DhcpOptions& WithDhcpConfigurations(const Aws::Vector& value) { SetDhcpConfigurations(value); return *this;} /** *

One or more DHCP options in the set.

*/ inline DhcpOptions& WithDhcpConfigurations(Aws::Vector&& value) { SetDhcpConfigurations(std::move(value)); return *this;} /** *

One or more DHCP options in the set.

*/ inline DhcpOptions& AddDhcpConfigurations(const DhcpConfiguration& value) { m_dhcpConfigurationsHasBeenSet = true; m_dhcpConfigurations.push_back(value); return *this; } /** *

One or more DHCP options in the set.

*/ inline DhcpOptions& AddDhcpConfigurations(DhcpConfiguration&& value) { m_dhcpConfigurationsHasBeenSet = true; m_dhcpConfigurations.push_back(std::move(value)); return *this; } /** *

The ID of the set of DHCP options.

*/ inline const Aws::String& GetDhcpOptionsId() const{ return m_dhcpOptionsId; } /** *

The ID of the set of DHCP options.

*/ inline bool DhcpOptionsIdHasBeenSet() const { return m_dhcpOptionsIdHasBeenSet; } /** *

The ID of the set of DHCP options.

*/ inline void SetDhcpOptionsId(const Aws::String& value) { m_dhcpOptionsIdHasBeenSet = true; m_dhcpOptionsId = value; } /** *

The ID of the set of DHCP options.

*/ inline void SetDhcpOptionsId(Aws::String&& value) { m_dhcpOptionsIdHasBeenSet = true; m_dhcpOptionsId = std::move(value); } /** *

The ID of the set of DHCP options.

*/ inline void SetDhcpOptionsId(const char* value) { m_dhcpOptionsIdHasBeenSet = true; m_dhcpOptionsId.assign(value); } /** *

The ID of the set of DHCP options.

*/ inline DhcpOptions& WithDhcpOptionsId(const Aws::String& value) { SetDhcpOptionsId(value); return *this;} /** *

The ID of the set of DHCP options.

*/ inline DhcpOptions& WithDhcpOptionsId(Aws::String&& value) { SetDhcpOptionsId(std::move(value)); return *this;} /** *

The ID of the set of DHCP options.

*/ inline DhcpOptions& WithDhcpOptionsId(const char* value) { SetDhcpOptionsId(value); return *this;} /** *

The ID of the AWS account that owns the DHCP options set.

*/ inline const Aws::String& GetOwnerId() const{ return m_ownerId; } /** *

The ID of the AWS account that owns the DHCP options set.

*/ inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; } /** *

The ID of the AWS account that owns the DHCP options set.

*/ inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; } /** *

The ID of the AWS account that owns the DHCP options set.

*/ inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); } /** *

The ID of the AWS account that owns the DHCP options set.

*/ inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); } /** *

The ID of the AWS account that owns the DHCP options set.

*/ inline DhcpOptions& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;} /** *

The ID of the AWS account that owns the DHCP options set.

*/ inline DhcpOptions& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;} /** *

The ID of the AWS account that owns the DHCP options set.

*/ inline DhcpOptions& WithOwnerId(const char* value) { SetOwnerId(value); return *this;} /** *

Any tags assigned to the DHCP options set.

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

Any tags assigned to the DHCP options set.

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

Any tags assigned to the DHCP options set.

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

Any tags assigned to the DHCP options set.

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

Any tags assigned to the DHCP options set.

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

Any tags assigned to the DHCP options set.

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

Any tags assigned to the DHCP options set.

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

Any tags assigned to the DHCP options set.

*/ inline DhcpOptions& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::Vector m_dhcpConfigurations; bool m_dhcpConfigurationsHasBeenSet; Aws::String m_dhcpOptionsId; bool m_dhcpOptionsIdHasBeenSet; Aws::String m_ownerId; bool m_ownerIdHasBeenSet; Aws::Vector m_tags; bool m_tagsHasBeenSet; }; } // namespace Model } // namespace EC2 } // namespace Aws