Class Evaluation
- java.lang.Object
-
- software.amazon.awssdk.services.codecommit.model.Evaluation
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Evaluation.Builder,Evaluation>
@Generated("software.amazon.awssdk:codegen") public final class Evaluation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Evaluation.Builder,Evaluation>
Returns information about the approval rules applied to a pull request and whether conditions have been met.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEvaluation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>approvalRulesNotSatisfied()The names of the approval rules that have not had their conditions met.List<String>approvalRulesSatisfied()The names of the approval rules that have had their conditions met.Booleanapproved()Whether the state of the pull request is approved.static Evaluation.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasApprovalRulesNotSatisfied()For responses, this returns true if the service returned a value for the ApprovalRulesNotSatisfied property.booleanhasApprovalRulesSatisfied()For responses, this returns true if the service returned a value for the ApprovalRulesSatisfied property.inthashCode()Booleanoverridden()Whether the approval rule requirements for the pull request have been overridden and no longer need to be met.List<SdkField<?>>sdkFields()static Class<? extends Evaluation.Builder>serializableBuilderClass()Evaluation.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
-
approved
public final Boolean approved()
Whether the state of the pull request is approved.
- Returns:
- Whether the state of the pull request is approved.
-
overridden
public final Boolean overridden()
Whether the approval rule requirements for the pull request have been overridden and no longer need to be met.
- Returns:
- Whether the approval rule requirements for the pull request have been overridden and no longer need to be met.
-
hasApprovalRulesSatisfied
public final boolean hasApprovalRulesSatisfied()
For responses, this returns true if the service returned a value for the ApprovalRulesSatisfied 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.
-
approvalRulesSatisfied
public final List<String> approvalRulesSatisfied()
The names of the approval rules that have had their conditions met.
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
hasApprovalRulesSatisfied()method.- Returns:
- The names of the approval rules that have had their conditions met.
-
hasApprovalRulesNotSatisfied
public final boolean hasApprovalRulesNotSatisfied()
For responses, this returns true if the service returned a value for the ApprovalRulesNotSatisfied 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.
-
approvalRulesNotSatisfied
public final List<String> approvalRulesNotSatisfied()
The names of the approval rules that have not had their conditions met.
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
hasApprovalRulesNotSatisfied()method.- Returns:
- The names of the approval rules that have not had their conditions met.
-
toBuilder
public Evaluation.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Evaluation.Builder,Evaluation>
-
builder
public static Evaluation.Builder builder()
-
serializableBuilderClass
public static Class<? extends Evaluation.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.
-
-