Interface RunMicrovmResponse.Builder

  • Method Details

    • microvmId

      RunMicrovmResponse.Builder microvmId(String microvmId)

      The unique identifier of the MicroVM.

      Parameters:
      microvmId - The unique identifier of the MicroVM.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • state

      The current lifecycle state of the MicroVM.

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

      The current lifecycle state of the MicroVM.

      Parameters:
      state - The current lifecycle state of the MicroVM.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • endpoint

      RunMicrovmResponse.Builder endpoint(String endpoint)

      The HTTPS endpoint URL for communicating with the MicroVM. Include a valid authentication token in the X-aws-proxy-auth header when sending requests.

      Parameters:
      endpoint - The HTTPS endpoint URL for communicating with the MicroVM. Include a valid authentication token in the X-aws-proxy-auth header when sending requests.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • imageArn

      RunMicrovmResponse.Builder imageArn(String imageArn)

      The ARN of the MicroVM image used to run this MicroVM.

      Parameters:
      imageArn - The ARN of the MicroVM image used to run this MicroVM.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • imageVersion

      RunMicrovmResponse.Builder imageVersion(String imageVersion)

      The version of the MicroVM image used to run this MicroVM.

      Parameters:
      imageVersion - The version of the MicroVM image used to run this MicroVM.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • executionRoleArn

      RunMicrovmResponse.Builder executionRoleArn(String executionRoleArn)

      The ARN of the IAM execution role assumed by the MicroVM.

      Parameters:
      executionRoleArn - The ARN of the IAM execution role assumed by the MicroVM.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • idlePolicy

      RunMicrovmResponse.Builder idlePolicy(IdlePolicy idlePolicy)

      The idle policy configuration of the MicroVM.

      Parameters:
      idlePolicy - The idle policy configuration of the MicroVM.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • idlePolicy

      default RunMicrovmResponse.Builder idlePolicy(Consumer<IdlePolicy.Builder> idlePolicy)

      The idle policy configuration of the MicroVM.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to idlePolicy(IdlePolicy).

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

      RunMicrovmResponse.Builder maximumDurationInSeconds(Integer maximumDurationInSeconds)

      The maximum duration in seconds that the MicroVM can exist.

      Parameters:
      maximumDurationInSeconds - The maximum duration in seconds that the MicroVM can exist.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • startedAt

      RunMicrovmResponse.Builder startedAt(Instant startedAt)

      The timestamp when the MicroVM first started.

      Parameters:
      startedAt - The timestamp when the MicroVM first started.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • terminatedAt

      RunMicrovmResponse.Builder terminatedAt(Instant terminatedAt)

      The timestamp when the MicroVM terminated.

      Parameters:
      terminatedAt - The timestamp when the MicroVM terminated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • stateReason

      RunMicrovmResponse.Builder stateReason(String stateReason)

      The reason for why the MicroVM is in the current state.

      Parameters:
      stateReason - The reason for why the MicroVM is in the current state.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ingressNetworkConnectors

      RunMicrovmResponse.Builder ingressNetworkConnectors(Collection<String> ingressNetworkConnectors)

      The list of ingress network connectors configured for the MicroVM.

      Parameters:
      ingressNetworkConnectors - The list of ingress network connectors configured for the MicroVM.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ingressNetworkConnectors

      RunMicrovmResponse.Builder ingressNetworkConnectors(String... ingressNetworkConnectors)

      The list of ingress network connectors configured for the MicroVM.

      Parameters:
      ingressNetworkConnectors - The list of ingress network connectors configured for the MicroVM.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • egressNetworkConnectors

      RunMicrovmResponse.Builder egressNetworkConnectors(Collection<String> egressNetworkConnectors)

      The list of egress network connectors configured for the MicroVM.

      Parameters:
      egressNetworkConnectors - The list of egress network connectors configured for the MicroVM.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • egressNetworkConnectors

      RunMicrovmResponse.Builder egressNetworkConnectors(String... egressNetworkConnectors)

      The list of egress network connectors configured for the MicroVM.

      Parameters:
      egressNetworkConnectors - The list of egress network connectors configured for the MicroVM.
      Returns:
      Returns a reference to this object so that method calls can be chained together.