Class PolicyViolation.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.PolicyViolation.Jsii$Proxy
All Implemented Interfaces:
PolicyViolation, software.amazon.jsii.JsiiSerializable
Enclosing interface:
PolicyViolation

@Stability(Stable) @Internal public static final class PolicyViolation.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements PolicyViolation
An implementation for PolicyViolation
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(PolicyViolation.Builder builder)
      Constructor that initializes the object based on literal property values passed by the PolicyViolation.Builder.
  • Method Details

    • getDescription

      public final String getDescription()
      Description copied from interface: PolicyViolation
      The description of the violation.
      Specified by:
      getDescription in interface PolicyViolation
    • getRuleName

      public final String getRuleName()
      Description copied from interface: PolicyViolation
      The name of the rule.
      Specified by:
      getRuleName in interface PolicyViolation
    • getViolatingResources

      public final List<PolicyViolatingResource> getViolatingResources()
      Description copied from interface: PolicyViolation
      The resources violating this rule.
      Specified by:
      getViolatingResources in interface PolicyViolation
    • getFix

      public final String getFix()
      Description copied from interface: PolicyViolation
      How to fix the violation.

      Default: - no fix is provided

      Specified by:
      getFix in interface PolicyViolation
    • getRuleMetadata

      public final Map<String,String> getRuleMetadata()
      Description copied from interface: PolicyViolation
      Additional metadata to include with the rule results.

      This can be used to provide additional information that is plugin specific. The data provided here will be rendered as is.

      Default: - no rule metadata

      Specified by:
      getRuleMetadata in interface PolicyViolation
    • getSeverity

      public final String getSeverity()
      Description copied from interface: PolicyViolation
      The severity of the violation, only used for reporting purposes.

      This is useful for helping the user discriminate between warnings, errors, information, etc.

      Default: - no severity

      Specified by:
      getSeverity in interface PolicyViolation
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object