<p>
The IPv4 addresses associated with the instance.
</p>

@param resourceAwsEc2InstanceIpV4Addresses
The IPv4 addresses associated with the instance.
519506
public void setResourceAwsEc2InstanceIpV4Addresses(java.util.Collection<IpFilter> resourceAwsEc2InstanceIpV4Addresses) {
        if (resourceAwsEc2InstanceIpV4Addresses == null) {
            this.resourceAwsEc2InstanceIpV4Addresses = null;
            return;
        }

        this.resourceAwsEc2InstanceIpV4Addresses = new java.util.ArrayList<IpFilter>(resourceAwsEc2InstanceIpV4Addresses);
    }
776261
public void setResourceAwsEc2InstanceKeyName(java.util.Collection<StringFilter> resourceAwsEc2InstanceKeyName) {
        if (resourceAwsEc2InstanceKeyName == null) {
            this.resourceAwsEc2InstanceKeyName = null;
            return;
        }

        this.resourceAwsEc2InstanceKeyName = new java.util.ArrayList<StringFilter>(resourceAwsEc2InstanceKeyName);
    }
1168553
public ResourceAddress newResourceAddress(String location, String nextProtocol) {
        if (nextProtocol != null) {
            ResourceOptions options = ResourceOptions.FACTORY.newResourceOptions();
            options.setOption(NEXT_PROTOCOL, nextProtocol);
            return newResourceAddress(location, options);
        }
        else {
            return newResourceAddress(location);
        }
    }
1041748
public void setIpAddresses(java.util.Collection<String> ipAddresses) {
        if (ipAddresses == null) {
            this.ipAddresses = null;
            return;
        }

        this.ipAddresses = new java.util.ArrayList<String>(ipAddresses);
    }
299361
public void setAddresses(java.util.Collection<Address> addresses) {
        if (addresses == null) {
            this.addresses = null;
            return;
        }

        this.addresses = new com.amazonaws.internal.SdkInternalList<Address>(addresses);
    }
1020446
public void setPrivateIpAddresses(java.util.Collection<PrivateIpAddressDetails> privateIpAddresses) {
        if (privateIpAddresses == null) {
            this.privateIpAddresses = null;
            return;
        }

        this.privateIpAddresses = new java.util.ArrayList<PrivateIpAddressDetails>(privateIpAddresses);
    }
1340611
public void setEc2InstanceIds(java.util.Collection<String> ec2InstanceIds) {
        if (ec2InstanceIds == null) {
            this.ec2InstanceIds = null;
            return;
        }

        this.ec2InstanceIds = new com.amazonaws.internal.SdkInternalList<String>(ec2InstanceIds);
    }
860594
@Override
    public final void setDefaultLocalAddresses(List<? extends SocketAddress> localAddresses) {
        if (localAddresses == null) {
            throw new NullPointerException("localAddresses");
        }
        setDefaultLocalAddresses((Iterable<? extends SocketAddress>) localAddresses);
    }
1231545
public void setResourceAwsEc2InstanceVpcId(java.util.Collection<StringFilter> resourceAwsEc2InstanceVpcId) {
        if (resourceAwsEc2InstanceVpcId == null) {
            this.resourceAwsEc2InstanceVpcId = null;
            return;
        }

        this.resourceAwsEc2InstanceVpcId = new java.util.ArrayList<StringFilter>(resourceAwsEc2InstanceVpcId);
    }
1024054
public static DnsServerAddresses singleton(final InetSocketAddress address) {
        if (address == null) {
            throw new NullPointerException("address");
        }
        if (address.isUnresolved()) {
            throw new IllegalArgumentException("cannot use an unresolved DNS server address: " + address);
        }

        return new SingletonDnsServerAddresses(address);
    }
829443
public void setDedicatedIps(java.util.Collection<DedicatedIp> dedicatedIps) {
        if (dedicatedIps == null) {
            this.dedicatedIps = null;
            return;
        }

        this.dedicatedIps = new java.util.ArrayList<DedicatedIp>(dedicatedIps);
    }
317960
public void setResourceAwsEc2InstanceLaunchedAt(java.util.Collection<DateFilter> resourceAwsEc2InstanceLaunchedAt) {
        if (resourceAwsEc2InstanceLaunchedAt == null) {
            this.resourceAwsEc2InstanceLaunchedAt = null;
            return;
        }

        this.resourceAwsEc2InstanceLaunchedAt = new java.util.ArrayList<DateFilter>(resourceAwsEc2InstanceLaunchedAt);
    }
475710
public void setPrivateIpAddressConfigs(java.util.Collection<ScheduledInstancesPrivateIpAddressConfig> privateIpAddressConfigs) {
        if (privateIpAddressConfigs == null) {
            this.privateIpAddressConfigs = null;
            return;
        }

        this.privateIpAddressConfigs = new com.amazonaws.internal.SdkInternalList<ScheduledInstancesPrivateIpAddressConfig>(privateIpAddressConfigs);
    }
369437
@Override
    public List<TcpExtension> bind(ResourceAddress address) {
        List<TcpExtension> extensions = new ArrayList<>(factories.size());
        for (TcpExtensionFactorySpi factory : factories) {
            TcpExtension extension = factory.bind(address);
            if (extension != null) {
               extensions.add(extension); 
            }
        }
        return extensions;
    }
613479
public void setResourceAwsEc2InstanceSubnetId(java.util.Collection<StringFilter> resourceAwsEc2InstanceSubnetId) {
        if (resourceAwsEc2InstanceSubnetId == null) {
            this.resourceAwsEc2InstanceSubnetId = null;
            return;
        }

        this.resourceAwsEc2InstanceSubnetId = new java.util.ArrayList<StringFilter>(resourceAwsEc2InstanceSubnetId);
    }
47854
public static Inet4Address forIPv4String(String ipString) {
        requireNonNull(ipString);

        try{
            InetAddress parsed = forString(ipString);

            if (parsed instanceof Inet4Address)
                return (Inet4Address) parsed;

        } catch(Exception ignored){}

        throw new IllegalArgumentException(format("Invalid IPv4 representation: %s", ipString));
    }
592761
@Override
  public void _LocalPeer_removeIPAddress(String ipAddress) throws MBeanException {
    Configuration[] oldIPAddressesConfig = getMutableConfiguration().getChildren(OwnIPAddresses.ordinal());

    Configuration ipAddressToRemove = null;

    List<Configuration> newIPAddressesConfig  = Arrays.asList(oldIPAddressesConfig);
    for (Configuration curIPAddress : newIPAddressesConfig) {
      if (curIPAddress.getStringValue(OwnIPAddress.ordinal(), DEFAULT_STRING).equals(ipAddress)) {
        ipAddressToRemove = curIPAddress;
        break;
      }
    }

    if (ipAddressToRemove != null) {
      newIPAddressesConfig.remove(ipAddressToRemove);

      getMutableConfiguration().setChildren(OwnIPAddresses.ordinal(), (Configuration[]) newIPAddressesConfig.toArray());

      if (logger.isInfoEnabled()) {
        logger.info("Local Peer IP Address " + ipAddress + " successfully added. Restart to Diameter stack is needed to apply changes.");
      }
    }
    else {
      if (logger.isInfoEnabled()) {
        logger.info("Local Peer IP Address " + ipAddress + " not found. No changes were made.");
      }
    }
  }