Class DescribeEventSourceResponse
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<DescribeEventSourceResponse.Builder,DescribeEventSourceResponse>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final EventSourceConfigurationDiscriminated EventSource configuration.final InstantThe time the EventSource was created.final StringFree-text description.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final StringThe Amazon Resource Name (ARN) that uniquely identifies an event bus.final StringEventSource ARN: event-sourcev2/<type>/<name>/<id>.final EventSourceDetailsValues EventBridge generated for this EventSource type, such as a webhook's URL and the ARN of its secret.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) Used to retrieve the value of a field from any class that extendsSdkResponse.final inthashCode()final InstantThe time the EventSource was last modified.final Stringname()EventSource name.final Booleanrevoked()True when the bus owner has withdrawn this EventSource.static Class<? extends DescribeEventSourceResponse.Builder> final EventSourceStatestate()Lifecycle state of an EventSource.final StringLifecycle state of an EventSource.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from class software.amazon.awssdk.services.eventbridgev2.model.EventBridgeV2Response
responseMetadataMethods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponseMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
eventSourceArn
EventSource ARN: event-sourcev2/<type>/<name>/<id>. The type segment is set by the service (aws.service for AWS service events, aws.partner for partner events, webhook for webhook events) and is not part of the resource's name. The id segment is a 25-character identifier generated by the service.
- Returns:
- EventSource ARN: event-sourcev2/<type>/<name>/<id>. The type segment is set by the service (aws.service for AWS service events, aws.partner for partner events, webhook for webhook events) and is not part of the resource's name. The id segment is a 25-character identifier generated by the service.
-
name
EventSource name. First character alphanumeric; the rest may add '.', '-', '_'. Names may not begin with the reserved "aws." prefix. The grammar matches the ARN local-name segment in EventSourceArn (event-sourcev2/<type>/<name>/<id>), mirroring EventBusName, so a name the ARN cannot represent cannot be created.
- Returns:
- EventSource name. First character alphanumeric; the rest may add '.', '-', '_'. Names may not begin with the reserved "aws." prefix. The grammar matches the ARN local-name segment in EventSourceArn (event-sourcev2/<type>/<name>/<id>), mirroring EventBusName, so a name the ARN cannot represent cannot be created.
-
eventBusArn
The Amazon Resource Name (ARN) that uniquely identifies an event bus.
- Returns:
- The Amazon Resource Name (ARN) that uniquely identifies an event bus.
-
configuration
Discriminated EventSource configuration. Exactly one variant must be set.
- Returns:
- Discriminated EventSource configuration. Exactly one variant must be set.
-
description
Free-text description. Used by every resource type that has one: event buses, subscribers, and event sources.
- Returns:
- Free-text description. Used by every resource type that has one: event buses, subscribers, and event sources.
-
state
Lifecycle state of an EventSource. Revocation is reported by the Revoked flag.
If the service returns an enum value that is not available in the current SDK version,
statewill returnEventSourceState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- Lifecycle state of an EventSource. Revocation is reported by the Revoked flag.
- See Also:
-
stateAsString
Lifecycle state of an EventSource. Revocation is reported by the Revoked flag.
If the service returns an enum value that is not available in the current SDK version,
statewill returnEventSourceState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- Lifecycle state of an EventSource. Revocation is reported by the Revoked flag.
- See Also:
-
revoked
True when the bus owner has withdrawn this EventSource. Present only when true, so an absent member means the EventSource is not revoked. Revocation is terminal: it never returns to false. Mutating operations on a revoked EventSource fail with InvalidStateException, except DeleteEventSource, which stays available so a revoked EventSource can still be cleaned up.
- Returns:
- True when the bus owner has withdrawn this EventSource. Present only when true, so an absent member means the EventSource is not revoked. Revocation is terminal: it never returns to false. Mutating operations on a revoked EventSource fail with InvalidStateException, except DeleteEventSource, which stays available so a revoked EventSource can still be cleaned up.
-
eventSourceDetails
Values EventBridge generated for this EventSource type, such as a webhook's URL and the ARN of its secret. Absent for EventSource types that have no generated values.
- Returns:
- Values EventBridge generated for this EventSource type, such as a webhook's URL and the ARN of its secret. Absent for EventSource types that have no generated values.
-
creationTime
The time the EventSource was created.
- Returns:
- The time the EventSource was created.
-
lastModifiedTime
The time the EventSource was last modified.
- Returns:
- The time the EventSource was last modified.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<DescribeEventSourceResponse.Builder,DescribeEventSourceResponse> - Specified by:
toBuilderin classAwsResponse- Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsResponse
-
equals
- Overrides:
equalsin classAwsResponse
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
Description copied from class:SdkResponseUsed to retrieve the value of a field from any class that extendsSdkResponse. The field name specified should match the member name from the corresponding service-2.json model specified in the codegen-resources folder for a given service. The class specifies what class to cast the returned value to. If the returned value is also a modeled class, theSdkResponse.getValueForField(String, Class)method will again be available.- Overrides:
getValueForFieldin classSdkResponse- Parameters:
fieldName- The name of the member to be retrieved.clazz- The class to cast the returned object to.- Returns:
- Optional containing the casted return value
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-