Class AsPrependTemplate
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.networking.direct_link.v1.model.AsPrependTemplate
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class AsPrependTemplate extends com.ibm.cloud.sdk.core.service.model.GenericModel
Create AS Prepend Configuration template.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AsPrependTemplate.Builder
Builder.static interface
AsPrependTemplate.Policy
Route type this AS Prepend applies to.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
length()
Gets the length.AsPrependTemplate.Builder
newBuilder()
New builder.String
policy()
Gets the policy.String
prefix()
Gets the prefix.List<String>
specificPrefixes()
Gets the specificPrefixes.
-
-
-
Method Detail
-
newBuilder
public AsPrependTemplate.Builder newBuilder()
New builder.- Returns:
- a AsPrependTemplate builder
-
length
public Long length()
Gets the length. Number of times the ASN to be prepended to the AS Path.- Returns:
- the length
-
policy
public String policy()
Gets the policy. Route type this AS Prepend applies to.- Returns:
- the policy
-
prefix
public String prefix()
Gets the prefix. Comma separated list of prefixes this AS Prepend applies to. Maximum of 10 prefixes. If not specified, this AS Prepend applies to all prefixes.- Returns:
- the prefix
-
-