Record Class NagReportReader.ComplianceFinding
java.lang.Object
java.lang.Record
com.cloudforgeci.api.core.rules.NagReportReader.ComplianceFinding
- Enclosing class:
NagReportReader
-
Constructor Summary
ConstructorsConstructorDescriptionComplianceFinding(String ruleId, String level, String resourceId, String message) Creates an instance of aComplianceFindingrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondescribe()One bullet-list line, e.g.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.level()Returns the value of thelevelrecord component.message()Returns the value of themessagerecord component.Returns the value of theresourceIdrecord component.ruleId()Returns the value of theruleIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ComplianceFinding
Creates an instance of aComplianceFindingrecord class.- Parameters:
ruleId- the value for theruleIdrecord componentlevel- the value for thelevelrecord componentresourceId- the value for theresourceIdrecord componentmessage- the value for themessagerecord component
-
-
Method Details
-
describe
One bullet-list line, e.g."AwsSolutions-S1 (LogBucket): server access logging is not enabled"-- shared by the blocking exception's own message and the advisory stack Output, so both read identically. -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
ruleId
Returns the value of theruleIdrecord component.- Returns:
- the value of the
ruleIdrecord component
-
level
Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-
resourceId
Returns the value of theresourceIdrecord component.- Returns:
- the value of the
resourceIdrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-