Class GatewayTemplate
- java.lang.Object
- 
- com.ibm.cloud.sdk.core.service.model.GenericModel
- 
- com.ibm.cloud.networking.direct_link.v1.model.GatewayTemplate
 
 
- 
- All Implemented Interfaces:
- com.ibm.cloud.sdk.core.service.model.ObjectModel
 - Direct Known Subclasses:
- GatewayTemplateGatewayTypeConnectTemplate,- GatewayTemplateGatewayTypeDedicatedTemplate
 
 public class GatewayTemplate extends com.ibm.cloud.sdk.core.service.model.GenericModelCreate gateway template. Classes which extend this class: - GatewayTemplateGatewayTypeDedicatedTemplate - GatewayTemplateGatewayTypeConnectTemplate
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static interfaceGatewayTemplate.ConnectionModeType of services this Gateway is attached to.static interfaceGatewayTemplate.DefaultExportRouteFilterThe default directional route filter action that applies to routes that do not match any directional route filters.static interfaceGatewayTemplate.DefaultImportRouteFilterThe default directional route filter action that applies to routes that do not match any directional route filters.static interfaceGatewayTemplate.TypeOffering type.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AsPrependTemplate>asPrepends()Gets the asPrepends.GatewayTemplateAuthenticationKeyauthenticationKey()Gets the authenticationKey.GatewayBfdConfigTemplatebfdConfig()Gets the bfdConfig.LongbgpAsn()Gets the bgpAsn.StringbgpBaseCidr()Gets the bgpBaseCidr.StringbgpCerCidr()Gets the bgpCerCidr.StringbgpIbmCidr()Gets the bgpIbmCidr.StringcarrierName()Gets the carrierName.StringconnectionMode()Gets the connectionMode.StringcrossConnectRouter()Gets the crossConnectRouter.StringcustomerName()Gets the customerName.StringdefaultExportRouteFilter()Gets the defaultExportRouteFilter.StringdefaultImportRouteFilter()Gets the defaultImportRouteFilter.List<GatewayTemplateRouteFilter>exportRouteFilters()Gets the exportRouteFilters.Booleanglobal()Gets the global.List<GatewayTemplateRouteFilter>importRouteFilters()Gets the importRouteFilters.StringlocationName()Gets the locationName.GatewayMacsecConfigTemplatemacsecConfig()Gets the macsecConfig.Booleanmetered()Gets the metered.Stringname()Gets the name.StringpatchPanelCompletionNotice()Gets the patchPanelCompletionNotice.GatewayPortIdentityport()Gets the port.ResourceGroupIdentityresourceGroup()Gets the resourceGroup.LongspeedMbps()Gets the speedMbps.Stringtype()Gets the type.Longvlan()Gets the vlan.
 
- 
- 
- 
Method Detail- 
asPrependspublic List<AsPrependTemplate> asPrepends() Gets the asPrepends. array of AS Prepend configuration information.- Returns:
- the asPrepends
 
 - 
authenticationKeypublic GatewayTemplateAuthenticationKey authenticationKey() Gets the authenticationKey. The identity of the standard key to use for BGP MD5 authentication key. The key material that you provide must be base64 encoded and original string must be maximum 126 ASCII characters in length. To clear the optional `authentication_key` field patch its crn to `""`.- Returns:
- the authenticationKey
 
 - 
bfdConfigpublic GatewayBfdConfigTemplate bfdConfig() Gets the bfdConfig. BFD configuration information.- Returns:
- the bfdConfig
 
 - 
bgpAsnpublic Long bgpAsn() Gets the bgpAsn. BGP ASN.- Returns:
- the bgpAsn
 
 - 
bgpBaseCidrpublic String bgpBaseCidr() Gets the bgpBaseCidr. (DEPRECATED) BGP base CIDR. Field is deprecated. See bgp_ibm_cidr and bgp_cer_cidr for details on how to create a gateway using either automatic or explicit IP assignment. Any bgp_base_cidr value set will be ignored. Deprecated field bgp_base_cidr will be removed from the API specificiation after 15-MAR-2021.- Returns:
- the bgpBaseCidr
 
 - 
bgpCerCidrpublic String bgpCerCidr() Gets the bgpCerCidr. BGP customer edge router CIDR. For auto IP assignment, omit bgp_cer_cidr and bgp_ibm_cidr. IBM will automatically select values for bgp_cer_cidr and bgp_ibm_cidr. For explicit IP assignment set a valid bgp_cer_cidr and bgp_ibm_cidr CIDR, the value must reside in one of "10.254.0.0/16", "172.16.0.0/12", "192.168.0.0/16", "169.254.0.0/16" or an owned public CIDR. bgp_cer_cidr and bgp_ibm_cidr must have matching network and subnet mask values.- Returns:
- the bgpCerCidr
 
 - 
bgpIbmCidrpublic String bgpIbmCidr() Gets the bgpIbmCidr. BGP IBM CIDR. For auto IP assignment, omit bgp_cer_cidr and bgp_ibm_cidr. IBM will automatically select values for bgp_cer_cidr and bgp_ibm_cidr. For explicit IP assignment set a valid bgp_cer_cidr and bgp_ibm_cidr CIDR, the value must reside in one of "10.254.0.0/16", "172.16.0.0/12", "192.168.0.0/16", "169.254.0.0/16" or an owned public CIDR. bgp_cer_cidr and bgp_ibm_cidr must have matching network and subnet mask values.- Returns:
- the bgpIbmCidr
 
 - 
connectionModepublic String connectionMode() Gets the connectionMode. Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values.- Returns:
- the connectionMode
 
 - 
defaultExportRouteFilterpublic String defaultExportRouteFilter() Gets the defaultExportRouteFilter. The default directional route filter action that applies to routes that do not match any directional route filters.- Returns:
- the defaultExportRouteFilter
 
 - 
defaultImportRouteFilterpublic String defaultImportRouteFilter() Gets the defaultImportRouteFilter. The default directional route filter action that applies to routes that do not match any directional route filters.- Returns:
- the defaultImportRouteFilter
 
 - 
exportRouteFilterspublic List<GatewayTemplateRouteFilter> exportRouteFilters() Gets the exportRouteFilters. Array of directional route filters for a Direct Link gateway. When creating a gateway or replacing existing route filters, the order of the items in the array will set the ordering of the list of route filters.- Returns:
- the exportRouteFilters
 
 - 
globalpublic Boolean global() Gets the global. Gateways with global routing (`true`) can connect to networks outside their associated region.- Returns:
- the global
 
 - 
importRouteFilterspublic List<GatewayTemplateRouteFilter> importRouteFilters() Gets the importRouteFilters. Array of directional route filters for a Direct Link gateway. When creating a gateway or replacing existing route filters, the order of the items in the array will set the ordering of the list of route filters.- Returns:
- the importRouteFilters
 
 - 
meteredpublic Boolean metered() Gets the metered. Metered billing option. When `true` gateway usage is billed per gigabyte. When `false` there is no per gigabyte usage charge, instead a flat rate is charged for the gateway.- Returns:
- the metered
 
 - 
namepublic String name() Gets the name. The unique user-defined name for this gateway.- Returns:
- the name
 
 - 
patchPanelCompletionNoticepublic String patchPanelCompletionNotice() Gets the patchPanelCompletionNotice. Gateway patch panel complete notification from implementation team.- Returns:
- the patchPanelCompletionNotice
 
 - 
resourceGrouppublic ResourceGroupIdentity resourceGroup() Gets the resourceGroup. Resource group for this resource. If unspecified, the account's [default resource group](https://cloud.ibm.com/apidocs/resource-manager#introduction) is used.- Returns:
- the resourceGroup
 
 - 
speedMbpspublic Long speedMbps() Gets the speedMbps. Gateway speed in megabits per second.- Returns:
- the speedMbps
 
 - 
typepublic String type() Gets the type. Offering type.- Returns:
- the type
 
 - 
carrierNamepublic String carrierName() Gets the carrierName. Carrier name.- Returns:
- the carrierName
 
 - 
crossConnectRouterpublic String crossConnectRouter() Gets the crossConnectRouter. Cross connect router.- Returns:
- the crossConnectRouter
 
 - 
customerNamepublic String customerName() Gets the customerName. Customer name.- Returns:
- the customerName
 
 - 
locationNamepublic String locationName() Gets the locationName. Gateway location.- Returns:
- the locationName
 
 - 
macsecConfigpublic GatewayMacsecConfigTemplate macsecConfig() Gets the macsecConfig. MACsec configuration information. Contact IBM support for access to MACsec.- Returns:
- the macsecConfig
 
 - 
vlanpublic Long vlan() Gets the vlan. The VLAN to configure for this gateway.- Returns:
- the vlan
 
 - 
portpublic GatewayPortIdentity port() Gets the port. Select Port Label for new type=connect gateway.- Returns:
- the port
 
 
- 
 
-