Interface ViolationDetail.Builder

All Superinterfaces:
Buildable, CopyableBuilder<ViolationDetail.Builder,ViolationDetail>, SdkBuilder<ViolationDetail.Builder,ViolationDetail>, SdkPojo
Enclosing class:
ViolationDetail

public static interface ViolationDetail.Builder extends SdkPojo, CopyableBuilder<ViolationDetail.Builder,ViolationDetail>
  • Method Details

    • policyId

      ViolationDetail.Builder policyId(String policyId)

      The ID of the Firewall Manager policy that the violation details were requested for.

      Parameters:
      policyId - The ID of the Firewall Manager policy that the violation details were requested for.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • memberAccount

      ViolationDetail.Builder memberAccount(String memberAccount)

      The Amazon Web Services account that the violation details were requested for.

      Parameters:
      memberAccount - The Amazon Web Services account that the violation details were requested for.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceId

      ViolationDetail.Builder resourceId(String resourceId)

      The resource ID that the violation details were requested for.

      Parameters:
      resourceId - The resource ID that the violation details were requested for.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceType

      ViolationDetail.Builder resourceType(String resourceType)

      The resource type that the violation details were requested for.

      Parameters:
      resourceType - The resource type that the violation details were requested for.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceViolations

      ViolationDetail.Builder resourceViolations(Collection<ResourceViolation> resourceViolations)

      List of violations for the requested resource.

      Parameters:
      resourceViolations - List of violations for the requested resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceViolations

      ViolationDetail.Builder resourceViolations(ResourceViolation... resourceViolations)

      List of violations for the requested resource.

      Parameters:
      resourceViolations - List of violations for the requested resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceViolations

      ViolationDetail.Builder resourceViolations(Consumer<ResourceViolation.Builder>... resourceViolations)

      List of violations for the requested resource.

      This is a convenience method that creates an instance of the ResourceViolation.Builder avoiding the need to create one manually via ResourceViolation.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to resourceViolations(List<ResourceViolation>).

      Parameters:
      resourceViolations - a consumer that will call methods on ResourceViolation.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • resourceTags

      ViolationDetail.Builder resourceTags(Collection<Tag> resourceTags)

      The ResourceTag objects associated with the resource.

      Parameters:
      resourceTags - The ResourceTag objects associated with the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceTags

      ViolationDetail.Builder resourceTags(Tag... resourceTags)

      The ResourceTag objects associated with the resource.

      Parameters:
      resourceTags - The ResourceTag objects associated with the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceTags

      ViolationDetail.Builder resourceTags(Consumer<Tag.Builder>... resourceTags)

      The ResourceTag objects associated with the resource.

      This is a convenience method that creates an instance of the Tag.Builder avoiding the need to create one manually via Tag.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to resourceTags(List<Tag>).

      Parameters:
      resourceTags - a consumer that will call methods on Tag.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • resourceDescription

      ViolationDetail.Builder resourceDescription(String resourceDescription)

      Brief description for the requested resource.

      Parameters:
      resourceDescription - Brief description for the requested resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.