Class Conflict
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Conflict.Builder,Conflict>
What a request conflicts with. Exactly one member is set.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Conflict.Builderbuilder()final DependencyStateConflictA resource the request depends on is in a state that doesn't allow the request, such as a draft revised after the caller read its draftRevision.final DuplicateValueConflictAnother resource already has the value the request gives a field that must be unique, such as a profile's name.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.static ConflictfromDependencyState(Consumer<DependencyStateConflict.Builder> dependencyState) Create an instance of this class withdependencyState()initialized to the given value.static ConflictfromDependencyState(DependencyStateConflict dependencyState) Create an instance of this class withdependencyState()initialized to the given value.static ConflictfromDuplicateValue(Consumer<DuplicateValueConflict.Builder> duplicateValue) Create an instance of this class withduplicateValue()initialized to the given value.static ConflictfromDuplicateValue(DuplicateValueConflict duplicateValue) Create an instance of this class withduplicateValue()initialized to the given value.static ConflictfromResourceState(Consumer<ResourceStateConflict.Builder> resourceState) Create an instance of this class withresourceState()initialized to the given value.static ConflictfromResourceState(ResourceStateConflict resourceState) Create an instance of this class withresourceState()initialized to the given value.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final ResourceStateConflictThe target resource's state doesn't allow the request.static Class<? extends Conflict.Builder> 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.type()Retrieve an enum value representing which member of this object is populated.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
duplicateValue
Another resource already has the value the request gives a field that must be unique, such as a profile's name.
- Returns:
- Another resource already has the value the request gives a field that must be unique, such as a profile's name.
-
resourceState
The target resource's state doesn't allow the request.
- Returns:
- The target resource's state doesn't allow the request.
-
dependencyState
A resource the request depends on is in a state that doesn't allow the request, such as a draft revised after the caller read its draftRevision.
- Returns:
- A resource the request depends on is in a state that doesn't allow the request, such as a draft revised after the caller read its draftRevision.
-
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<Conflict.Builder,Conflict> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
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
-
fromDuplicateValue
Create an instance of this class withduplicateValue()initialized to the given value.Another resource already has the value the request gives a field that must be unique, such as a profile's name.
- Parameters:
duplicateValue- Another resource already has the value the request gives a field that must be unique, such as a profile's name.
-
fromDuplicateValue
Create an instance of this class withduplicateValue()initialized to the given value.Another resource already has the value the request gives a field that must be unique, such as a profile's name.
- Parameters:
duplicateValue- Another resource already has the value the request gives a field that must be unique, such as a profile's name.
-
fromResourceState
Create an instance of this class withresourceState()initialized to the given value.The target resource's state doesn't allow the request.
- Parameters:
resourceState- The target resource's state doesn't allow the request.
-
fromResourceState
Create an instance of this class withresourceState()initialized to the given value.The target resource's state doesn't allow the request.
- Parameters:
resourceState- The target resource's state doesn't allow the request.
-
fromDependencyState
Create an instance of this class withdependencyState()initialized to the given value.A resource the request depends on is in a state that doesn't allow the request, such as a draft revised after the caller read its draftRevision.
- Parameters:
dependencyState- A resource the request depends on is in a state that doesn't allow the request, such as a draft revised after the caller read its draftRevision.
-
fromDependencyState
public static Conflict fromDependencyState(Consumer<DependencyStateConflict.Builder> dependencyState) Create an instance of this class withdependencyState()initialized to the given value.A resource the request depends on is in a state that doesn't allow the request, such as a draft revised after the caller read its draftRevision.
- Parameters:
dependencyState- A resource the request depends on is in a state that doesn't allow the request, such as a draft revised after the caller read its draftRevision.
-
type
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beConflict.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beConflict.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set. -
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-