Class CreateRouteResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.migrationhubrefactorspaces.model.MigrationHubRefactorSpacesResponse
-
- software.amazon.awssdk.services.migrationhubrefactorspaces.model.CreateRouteResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateRouteResponse.Builder,CreateRouteResponse>
@Generated("software.amazon.awssdk:codegen") public final class CreateRouteResponse extends MigrationHubRefactorSpacesResponse implements ToCopyableBuilder<CreateRouteResponse.Builder,CreateRouteResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreateRouteResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringapplicationId()The ID of the application in which the route is created.Stringarn()The Amazon Resource Name (ARN) of the route.static CreateRouteResponse.Builderbuilder()StringcreatedByAccountId()The Amazon Web Services account ID of the route creator.InstantcreatedTime()A timestamp that indicates when the route is created.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.InstantlastUpdatedTime()A timestamp that indicates when the route was last updated.StringownerAccountId()The Amazon Web Services account ID of the route owner.StringrouteId()The unique identifier of the route.RouteTyperouteType()The route type of the route.StringrouteTypeAsString()The route type of the route.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends CreateRouteResponse.Builder>serializableBuilderClass()StringserviceId()The ID of service in which the route is created.RouteStatestate()The current state of the route.StringstateAsString()The current state of the route.Map<String,String>tags()The tags assigned to the created route.CreateRouteResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.UriPathRouteInputuriPathRoute()Configuration for the URI path route type.-
Methods inherited from class software.amazon.awssdk.services.migrationhubrefactorspaces.model.MigrationHubRefactorSpacesResponse
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
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
-
applicationId
public final String applicationId()
The ID of the application in which the route is created.
- Returns:
- The ID of the application in which the route is created.
-
arn
public final String arn()
The Amazon Resource Name (ARN) of the route. The format for this ARN is
arn:aws:refactor-spaces:region:account-id:resource-type/resource-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.- Returns:
- The Amazon Resource Name (ARN) of the route. The format for this ARN is
arn:aws:refactor-spaces:region:account-id:resource-type/resource-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
-
createdByAccountId
public final String createdByAccountId()
The Amazon Web Services account ID of the route creator.
- Returns:
- The Amazon Web Services account ID of the route creator.
-
createdTime
public final Instant createdTime()
A timestamp that indicates when the route is created.
- Returns:
- A timestamp that indicates when the route is created.
-
lastUpdatedTime
public final Instant lastUpdatedTime()
A timestamp that indicates when the route was last updated.
- Returns:
- A timestamp that indicates when the route was last updated.
-
ownerAccountId
public final String ownerAccountId()
The Amazon Web Services account ID of the route owner.
- Returns:
- The Amazon Web Services account ID of the route owner.
-
routeId
public final String routeId()
The unique identifier of the route.
- Returns:
- The unique identifier of the route.
-
routeType
public final RouteType routeType()
The route type of the route.
If the service returns an enum value that is not available in the current SDK version,
routeTypewill returnRouteType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrouteTypeAsString().- Returns:
- The route type of the route.
- See Also:
RouteType
-
routeTypeAsString
public final String routeTypeAsString()
The route type of the route.
If the service returns an enum value that is not available in the current SDK version,
routeTypewill returnRouteType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrouteTypeAsString().- Returns:
- The route type of the route.
- See Also:
RouteType
-
serviceId
public final String serviceId()
The ID of service in which the route is created. Traffic that matches this route is forwarded to this service.
- Returns:
- The ID of service in which the route is created. Traffic that matches this route is forwarded to this service.
-
state
public final RouteState state()
The current state of the route. Activation state only allows
ACTIVEorINACTIVEas user inputs.FAILEDis a route state that is system generated.If the service returns an enum value that is not available in the current SDK version,
statewill returnRouteState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The current state of the route. Activation state only allows
ACTIVEorINACTIVEas user inputs.FAILEDis a route state that is system generated. - See Also:
RouteState
-
stateAsString
public final String stateAsString()
The current state of the route. Activation state only allows
ACTIVEorINACTIVEas user inputs.FAILEDis a route state that is system generated.If the service returns an enum value that is not available in the current SDK version,
statewill returnRouteState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The current state of the route. Activation state only allows
ACTIVEorINACTIVEas user inputs.FAILEDis a route state that is system generated. - See Also:
RouteState
-
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 Map<String,String> tags()
The tags assigned to the created route. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair.
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 tags assigned to the created route. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair.
-
uriPathRoute
public final UriPathRouteInput uriPathRoute()
Configuration for the URI path route type.
- Returns:
- Configuration for the URI path route type.
-
toBuilder
public CreateRouteResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateRouteResponse.Builder,CreateRouteResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static CreateRouteResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends CreateRouteResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsResponse
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkResponse
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-