Class CoreNetworkSegment
- java.lang.Object
-
- software.amazon.awssdk.services.networkmanager.model.CoreNetworkSegment
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CoreNetworkSegment.Builder,CoreNetworkSegment>
@Generated("software.amazon.awssdk:codegen") public final class CoreNetworkSegment extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CoreNetworkSegment.Builder,CoreNetworkSegment>
Describes a core network segment, which are dedicated routes. Only attachments within this segment can communicate with each other.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCoreNetworkSegment.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CoreNetworkSegment.Builderbuilder()List<String>edgeLocations()The Regions where the edges are located.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasEdgeLocations()For responses, this returns true if the service returned a value for the EdgeLocations property.inthashCode()booleanhasSharedSegments()For responses, this returns true if the service returned a value for the SharedSegments property.Stringname()The name of a core network segment.List<SdkField<?>>sdkFields()static Class<? extends CoreNetworkSegment.Builder>serializableBuilderClass()List<String>sharedSegments()The shared segments of a core network.CoreNetworkSegment.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
name
public final String name()
The name of a core network segment.
- Returns:
- The name of a core network segment.
-
hasEdgeLocations
public final boolean hasEdgeLocations()
For responses, this returns true if the service returned a value for the EdgeLocations property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
edgeLocations
public final List<String> edgeLocations()
The Regions where the edges are located.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasEdgeLocations()method.- Returns:
- The Regions where the edges are located.
-
hasSharedSegments
public final boolean hasSharedSegments()
For responses, this returns true if the service returned a value for the SharedSegments property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
sharedSegments
public final List<String> sharedSegments()
The shared segments of a core network.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasSharedSegments()method.- Returns:
- The shared segments of a core network.
-
toBuilder
public CoreNetworkSegment.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CoreNetworkSegment.Builder,CoreNetworkSegment>
-
builder
public static CoreNetworkSegment.Builder builder()
-
serializableBuilderClass
public static Class<? extends CoreNetworkSegment.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-