Class ApprovalRule
- java.lang.Object
-
- software.amazon.awssdk.services.codecommit.model.ApprovalRule
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ApprovalRule.Builder,ApprovalRule>
@Generated("software.amazon.awssdk:codegen") public final class ApprovalRule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ApprovalRule.Builder,ApprovalRule>
Returns information about an approval rule.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceApprovalRule.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringapprovalRuleContent()The content of the approval rule.StringapprovalRuleId()The system-generated ID of the approval rule.StringapprovalRuleName()The name of the approval rule.static ApprovalRule.Builderbuilder()InstantcreationDate()The date the approval rule was created, in timestamp format.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()InstantlastModifiedDate()The date the approval rule was most recently changed, in timestamp format.StringlastModifiedUser()The Amazon Resource Name (ARN) of the user who made the most recent changes to the approval rule.OriginApprovalRuleTemplateoriginApprovalRuleTemplate()The approval rule template used to create the rule.StringruleContentSha256()The SHA-256 hash signature for the content of the approval rule.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ApprovalRule.Builder>serializableBuilderClass()ApprovalRule.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
-
approvalRuleId
public final String approvalRuleId()
The system-generated ID of the approval rule.
- Returns:
- The system-generated ID of the approval rule.
-
approvalRuleName
public final String approvalRuleName()
The name of the approval rule.
- Returns:
- The name of the approval rule.
-
approvalRuleContent
public final String approvalRuleContent()
The content of the approval rule.
- Returns:
- The content of the approval rule.
-
ruleContentSha256
public final String ruleContentSha256()
The SHA-256 hash signature for the content of the approval rule.
- Returns:
- The SHA-256 hash signature for the content of the approval rule.
-
lastModifiedDate
public final Instant lastModifiedDate()
The date the approval rule was most recently changed, in timestamp format.
- Returns:
- The date the approval rule was most recently changed, in timestamp format.
-
creationDate
public final Instant creationDate()
The date the approval rule was created, in timestamp format.
- Returns:
- The date the approval rule was created, in timestamp format.
-
lastModifiedUser
public final String lastModifiedUser()
The Amazon Resource Name (ARN) of the user who made the most recent changes to the approval rule.
- Returns:
- The Amazon Resource Name (ARN) of the user who made the most recent changes to the approval rule.
-
originApprovalRuleTemplate
public final OriginApprovalRuleTemplate originApprovalRuleTemplate()
The approval rule template used to create the rule.
- Returns:
- The approval rule template used to create the rule.
-
toBuilder
public ApprovalRule.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ApprovalRule.Builder,ApprovalRule>
-
builder
public static ApprovalRule.Builder builder()
-
serializableBuilderClass
public static Class<? extends ApprovalRule.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-