Package com.vmware.nsx_policy.model
Class IntersiteGatewayConfig.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.IntersiteGatewayConfig.Builder
-
- Enclosing class:
- IntersiteGatewayConfig
public static final class IntersiteGatewayConfig.Builder extends java.lang.Object
Builder class forIntersiteGatewayConfig
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofIntersiteGatewayConfig
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntersiteGatewayConfig
build()
IntersiteGatewayConfig.Builder
setFallbackSites(java.util.List<java.lang.String> fallbackSites)
Fallback site to be used as new primary site on current primary site failure.IntersiteGatewayConfig.Builder
setIntersiteTransitSubnet(java.lang.String intersiteTransitSubnet)
IPv4 subnet for inter-site transit segment connecting service routers across sites for stretched gateway.IntersiteGatewayConfig.Builder
setLastAdminActiveEpoch(java.lang.Long lastAdminActiveEpoch)
Epoch(in seconds) is auto updated based on system current timestamp when primary locale service is updated.IntersiteGatewayConfig.Builder
setPrimarySitePath(java.lang.String primarySitePath)
Primary egress site for gateway.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofIntersiteGatewayConfig
.
-
-
Method Detail
-
setFallbackSites
public IntersiteGatewayConfig.Builder setFallbackSites(java.util.List<java.lang.String> fallbackSites)
Fallback site to be used as new primary site on current primary site failure. Disaster recovery must be initiated via API/UI. Fallback site configuration is supported only for T0 gateway. T1 gateway will follow T0 gateway's primary site during disaster recovery.- Parameters:
fallbackSites
- New value for the property.
-
setIntersiteTransitSubnet
public IntersiteGatewayConfig.Builder setIntersiteTransitSubnet(java.lang.String intersiteTransitSubnet)
IPv4 subnet for inter-site transit segment connecting service routers across sites for stretched gateway. For IPv6 link local subnet is auto configured. format: ip-cidr-block- Parameters:
intersiteTransitSubnet
- New value for the property.
-
setLastAdminActiveEpoch
public IntersiteGatewayConfig.Builder setLastAdminActiveEpoch(java.lang.Long lastAdminActiveEpoch)
Epoch(in seconds) is auto updated based on system current timestamp when primary locale service is updated. It is used for resolving conflict during site failover. If system clock not in sync then User can optionally override this. New value must be higher than the current value. format: int64- Parameters:
lastAdminActiveEpoch
- New value for the property.
-
setPrimarySitePath
public IntersiteGatewayConfig.Builder setPrimarySitePath(java.lang.String primarySitePath)
Primary egress site for gateway. T0/T1 gateway in Active/Standby mode supports stateful services on primary site. In this mode primary site must be set if gateway is stretched to more than one site. For T0 gateway in Active/Active primary site is optional field. If set then secondary site prefers routes learned from primary over locally learned routes. This field is not applicable for T1 gateway with no services.- Parameters:
primarySitePath
- New value for the property.
-
build
public IntersiteGatewayConfig build()
-
-