/*
* Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.ec2.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
import com.amazonaws.Request;
import com.amazonaws.services.ec2.model.transform.ModifyVpnConnectionOptionsRequestMarshaller;
/**
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ModifyVpnConnectionOptionsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable,
DryRunSupportedRequest
* The ID of the Site-to-Site VPN connection.
*
* The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection.
*
* Default:
* The IPv4 CIDR on the Amazon Web Services side of the VPN connection.
*
* Default:
* The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection.
*
* Default:
* The IPv6 CIDR on the Amazon Web Services side of the VPN connection.
*
* Default:
* The ID of the Site-to-Site VPN connection.
*
* The ID of the Site-to-Site VPN connection.
*
* The ID of the Site-to-Site VPN connection.
*
* The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection.
*
* Default: 0.0.0.0/0
* 0.0.0.0/0
* ::/0
* ::/0
* 0.0.0.0/0
*
* Default: 0.0.0.0/0
*/
public void setLocalIpv4NetworkCidr(String localIpv4NetworkCidr) {
this.localIpv4NetworkCidr = localIpv4NetworkCidr;
}
/**
*
* The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection. *
*
* Default: 0.0.0.0/0
*
* Default: 0.0.0.0/0
*/
public String getLocalIpv4NetworkCidr() {
return this.localIpv4NetworkCidr;
}
/**
*
* The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection. *
*
* Default: 0.0.0.0/0
*
* Default: 0.0.0.0/0
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyVpnConnectionOptionsRequest withLocalIpv4NetworkCidr(String localIpv4NetworkCidr) {
setLocalIpv4NetworkCidr(localIpv4NetworkCidr);
return this;
}
/**
*
* The IPv4 CIDR on the Amazon Web Services side of the VPN connection. *
*
* Default: 0.0.0.0/0
*
* Default: 0.0.0.0/0
*/
public void setRemoteIpv4NetworkCidr(String remoteIpv4NetworkCidr) {
this.remoteIpv4NetworkCidr = remoteIpv4NetworkCidr;
}
/**
*
* The IPv4 CIDR on the Amazon Web Services side of the VPN connection. *
*
* Default: 0.0.0.0/0
*
* Default: 0.0.0.0/0
*/
public String getRemoteIpv4NetworkCidr() {
return this.remoteIpv4NetworkCidr;
}
/**
*
* The IPv4 CIDR on the Amazon Web Services side of the VPN connection. *
*
* Default: 0.0.0.0/0
*
* Default: 0.0.0.0/0
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyVpnConnectionOptionsRequest withRemoteIpv4NetworkCidr(String remoteIpv4NetworkCidr) {
setRemoteIpv4NetworkCidr(remoteIpv4NetworkCidr);
return this;
}
/**
*
* The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection. *
*
* Default: ::/0
*
* Default: ::/0
*/
public void setLocalIpv6NetworkCidr(String localIpv6NetworkCidr) {
this.localIpv6NetworkCidr = localIpv6NetworkCidr;
}
/**
*
* The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection. *
*
* Default: ::/0
*
* Default: ::/0
*/
public String getLocalIpv6NetworkCidr() {
return this.localIpv6NetworkCidr;
}
/**
*
* The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection. *
*
* Default: ::/0
*
* Default: ::/0
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyVpnConnectionOptionsRequest withLocalIpv6NetworkCidr(String localIpv6NetworkCidr) {
setLocalIpv6NetworkCidr(localIpv6NetworkCidr);
return this;
}
/**
*
* The IPv6 CIDR on the Amazon Web Services side of the VPN connection. *
*
* Default: ::/0
*
* Default: ::/0
*/
public void setRemoteIpv6NetworkCidr(String remoteIpv6NetworkCidr) {
this.remoteIpv6NetworkCidr = remoteIpv6NetworkCidr;
}
/**
*
* The IPv6 CIDR on the Amazon Web Services side of the VPN connection. *
*
* Default: ::/0
*
* Default: ::/0
*/
public String getRemoteIpv6NetworkCidr() {
return this.remoteIpv6NetworkCidr;
}
/**
*
* The IPv6 CIDR on the Amazon Web Services side of the VPN connection. *
*
* Default: ::/0
*
* Default: ::/0
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyVpnConnectionOptionsRequest withRemoteIpv6NetworkCidr(String remoteIpv6NetworkCidr) {
setRemoteIpv6NetworkCidr(remoteIpv6NetworkCidr);
return this;
}
/**
* This method is intended for internal use only. Returns the marshaled request configured with additional
* parameters to enable operation dry-run.
*/
@Override
public Request