Interface ApiInventoryItem.Builder

  • Method Details

    • method

      The HTTP method of the API.

      Parameters:
      method - The HTTP method of the API.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • method

      The HTTP method of the API.

      Parameters:
      method - The HTTP method of the API.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • host

      Sets the value of the Host property for this object.
      Parameters:
      host - The new value for the Host property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • port

      The port the API listens on, from 0 to 65535.

      Parameters:
      port - The port the API listens on, from 0 to 65535.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • path

      The request path of the API.

      Parameters:
      path - The request path of the API.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • accountId

      ApiInventoryItem.Builder accountId(String accountId)

      The AWS account ID that owns the API.

      Parameters:
      accountId - The AWS account ID that owns the API.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceArn

      ApiInventoryItem.Builder resourceArn(String resourceArn)

      The ARN of the resource that serves the API, such as an API Gateway stage or a load balancer.

      Parameters:
      resourceArn - The ARN of the resource that serves the API, such as an API Gateway stage or a load balancer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • region

      The AWS Region the API was discovered in.

      Parameters:
      region - The AWS Region the API was discovered in.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • discoverySource

      ApiInventoryItem.Builder discoverySource(String discoverySource)
      Sets the value of the DiscoverySource property for this object.
      Parameters:
      discoverySource - The new value for the DiscoverySource property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • discoverySource

      ApiInventoryItem.Builder discoverySource(DiscoverySource discoverySource)
      Sets the value of the DiscoverySource property for this object.
      Parameters:
      discoverySource - The new value for the DiscoverySource property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • firstSeen

      ApiInventoryItem.Builder firstSeen(Instant firstSeen)

      When discovery first observed the API.

      Parameters:
      firstSeen - When discovery first observed the API.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastSeen

      ApiInventoryItem.Builder lastSeen(Instant lastSeen)

      When discovery most recently observed the API.

      Parameters:
      lastSeen - When discovery most recently observed the API.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • visibility

      ApiInventoryItem.Builder visibility(String visibility)
      Sets the value of the Visibility property for this object.
      Parameters:
      visibility - The new value for the Visibility property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • visibility

      ApiInventoryItem.Builder visibility(Visibility visibility)
      Sets the value of the Visibility property for this object.
      Parameters:
      visibility - The new value for the Visibility property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • wafStatus

      ApiInventoryItem.Builder wafStatus(String wafStatus)
      Sets the value of the WafStatus property for this object.
      Parameters:
      wafStatus - The new value for the WafStatus property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • wafStatus

      ApiInventoryItem.Builder wafStatus(WafStatus wafStatus)
      Sets the value of the WafStatus property for this object.
      Parameters:
      wafStatus - The new value for the WafStatus property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • classification

      ApiInventoryItem.Builder classification(String classification)
      Sets the value of the Classification property for this object.
      Parameters:
      classification - The new value for the Classification property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • classification

      ApiInventoryItem.Builder classification(Classification classification)
      Sets the value of the Classification property for this object.
      Parameters:
      classification - The new value for the Classification property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • managedBy

      ApiInventoryItem.Builder managedBy(String managedBy)
      Sets the value of the ManagedBy property for this object.
      Parameters:
      managedBy - The new value for the ManagedBy property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • managedBy

      ApiInventoryItem.Builder managedBy(ManagedBy managedBy)
      Sets the value of the ManagedBy property for this object.
      Parameters:
      managedBy - The new value for the ManagedBy property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • workloadsWithStrings

      ApiInventoryItem.Builder workloadsWithStrings(Collection<String> workloads)

      AI protocols seen in this API's traffic, each listed at most once. Absent when none has been reported, which includes an account that has not enabled AI discovery.

      Parameters:
      workloads - AI protocols seen in this API's traffic, each listed at most once. Absent when none has been reported, which includes an account that has not enabled AI discovery.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • workloadsWithStrings

      ApiInventoryItem.Builder workloadsWithStrings(String... workloads)

      AI protocols seen in this API's traffic, each listed at most once. Absent when none has been reported, which includes an account that has not enabled AI discovery.

      Parameters:
      workloads - AI protocols seen in this API's traffic, each listed at most once. Absent when none has been reported, which includes an account that has not enabled AI discovery.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • workloads

      AI protocols seen in this API's traffic, each listed at most once. Absent when none has been reported, which includes an account that has not enabled AI discovery.

      Parameters:
      workloads - AI protocols seen in this API's traffic, each listed at most once. Absent when none has been reported, which includes an account that has not enabled AI discovery.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • workloads

      ApiInventoryItem.Builder workloads(Workload... workloads)

      AI protocols seen in this API's traffic, each listed at most once. Absent when none has been reported, which includes an account that has not enabled AI discovery.

      Parameters:
      workloads - AI protocols seen in this API's traffic, each listed at most once. Absent when none has been reported, which includes an account that has not enabled AI discovery.
      Returns:
      Returns a reference to this object so that method calls can be chained together.