/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a private IPv4 address for a Scheduled Instance.See
* Also:
AWS
* API Reference
Indicates whether this is a primary IPv4 address. Otherwise, this is a * secondary IPv4 address.
*/ inline bool GetPrimary() const{ return m_primary; } /** *Indicates whether this is a primary IPv4 address. Otherwise, this is a * secondary IPv4 address.
*/ inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; } /** *Indicates whether this is a primary IPv4 address. Otherwise, this is a * secondary IPv4 address.
*/ inline void SetPrimary(bool value) { m_primaryHasBeenSet = true; m_primary = value; } /** *Indicates whether this is a primary IPv4 address. Otherwise, this is a * secondary IPv4 address.
*/ inline ScheduledInstancesPrivateIpAddressConfig& WithPrimary(bool value) { SetPrimary(value); return *this;} /** *The IPv4 address.
*/ inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; } /** *The IPv4 address.
*/ inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; } /** *The IPv4 address.
*/ inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; } /** *The IPv4 address.
*/ inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::move(value); } /** *The IPv4 address.
*/ inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); } /** *The IPv4 address.
*/ inline ScheduledInstancesPrivateIpAddressConfig& WithPrivateIpAddress(const Aws::String& value) { SetPrivateIpAddress(value); return *this;} /** *The IPv4 address.
*/ inline ScheduledInstancesPrivateIpAddressConfig& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(std::move(value)); return *this;} /** *The IPv4 address.
*/ inline ScheduledInstancesPrivateIpAddressConfig& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;} private: bool m_primary; bool m_primaryHasBeenSet = false; Aws::String m_privateIpAddress; bool m_privateIpAddressHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws