Class Peering
- java.lang.Object
-
- software.amazon.awssdk.services.networkmanager.model.Peering
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Peering.Builder,Peering>
@Generated("software.amazon.awssdk:codegen") public final class Peering extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Peering.Builder,Peering>
Describes a peering connection.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePeering.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Peering.Builderbuilder()StringcoreNetworkArn()The ARN of a core network.StringcoreNetworkId()The ID of the core network for the peering request.InstantcreatedAt()The timestamp when the attachment peer was created.StringedgeLocation()The edge location for the peer.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.StringownerAccountId()The ID of the account owner.StringpeeringId()The ID of the peering attachment.PeeringTypepeeringType()The type of peering.StringpeeringTypeAsString()The type of peering.StringresourceArn()The resource ARN of the peer.List<SdkField<?>>sdkFields()static Class<? extends Peering.Builder>serializableBuilderClass()PeeringStatestate()The current state of the peering connection.StringstateAsString()The current state of the peering connection.List<Tag>tags()The list of key-value tags associated with the peering.Peering.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
-
coreNetworkId
public final String coreNetworkId()
The ID of the core network for the peering request.
- Returns:
- The ID of the core network for the peering request.
-
coreNetworkArn
public final String coreNetworkArn()
The ARN of a core network.
- Returns:
- The ARN of a core network.
-
peeringId
public final String peeringId()
The ID of the peering attachment.
- Returns:
- The ID of the peering attachment.
-
ownerAccountId
public final String ownerAccountId()
The ID of the account owner.
- Returns:
- The ID of the account owner.
-
peeringType
public final PeeringType peeringType()
The type of peering. This will be
TRANSIT_GATEWAY.If the service returns an enum value that is not available in the current SDK version,
peeringTypewill returnPeeringType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompeeringTypeAsString().- Returns:
- The type of peering. This will be
TRANSIT_GATEWAY. - See Also:
PeeringType
-
peeringTypeAsString
public final String peeringTypeAsString()
The type of peering. This will be
TRANSIT_GATEWAY.If the service returns an enum value that is not available in the current SDK version,
peeringTypewill returnPeeringType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompeeringTypeAsString().- Returns:
- The type of peering. This will be
TRANSIT_GATEWAY. - See Also:
PeeringType
-
state
public final PeeringState state()
The current state of the peering connection.
If the service returns an enum value that is not available in the current SDK version,
statewill returnPeeringState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The current state of the peering connection.
- See Also:
PeeringState
-
stateAsString
public final String stateAsString()
The current state of the peering connection.
If the service returns an enum value that is not available in the current SDK version,
statewill returnPeeringState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The current state of the peering connection.
- See Also:
PeeringState
-
edgeLocation
public final String edgeLocation()
The edge location for the peer.
- Returns:
- The edge location for the peer.
-
resourceArn
public final String resourceArn()
The resource ARN of the peer.
- Returns:
- The resource ARN of the peer.
-
hasTags
public final boolean hasTags()
For responses, this returns true if the service returned a value for the Tags 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.
-
tags
public final List<Tag> tags()
The list of key-value tags associated with the peering.
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
hasTags()method.- Returns:
- The list of key-value tags associated with the peering.
-
createdAt
public final Instant createdAt()
The timestamp when the attachment peer was created.
- Returns:
- The timestamp when the attachment peer was created.
-
toBuilder
public Peering.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Peering.Builder,Peering>
-
builder
public static Peering.Builder builder()
-
serializableBuilderClass
public static Class<? extends Peering.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.
-
-