Class DeploymentState

    • Method Detail

      • component

        public final ComponentState component()

        The state of the component associated with the deployment.

        Returns:
        The state of the component associated with the deployment.
      • environment

        public final EnvironmentState environment()

        The state of the environment associated with the deployment.

        Returns:
        The state of the environment associated with the deployment.
      • serviceInstance

        public final ServiceInstanceState serviceInstance()

        The state of the service instance associated with the deployment.

        Returns:
        The state of the service instance associated with the deployment.
      • servicePipeline

        public final ServicePipelineState servicePipeline()

        The state of the service pipeline associated with the deployment.

        Returns:
        The state of the service pipeline associated with the deployment.
      • hashCode

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

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)
      • fromComponent

        public static DeploymentState fromComponent​(ComponentState component)
        Create an instance of this class with component() initialized to the given value.

        The state of the component associated with the deployment.

        Parameters:
        component - The state of the component associated with the deployment.
      • fromComponent

        public static DeploymentState fromComponent​(Consumer<ComponentState.Builder> component)
        Create an instance of this class with component() initialized to the given value.

        The state of the component associated with the deployment.

        Parameters:
        component - The state of the component associated with the deployment.
      • fromEnvironment

        public static DeploymentState fromEnvironment​(EnvironmentState environment)
        Create an instance of this class with environment() initialized to the given value.

        The state of the environment associated with the deployment.

        Parameters:
        environment - The state of the environment associated with the deployment.
      • fromEnvironment

        public static DeploymentState fromEnvironment​(Consumer<EnvironmentState.Builder> environment)
        Create an instance of this class with environment() initialized to the given value.

        The state of the environment associated with the deployment.

        Parameters:
        environment - The state of the environment associated with the deployment.
      • fromServiceInstance

        public static DeploymentState fromServiceInstance​(ServiceInstanceState serviceInstance)
        Create an instance of this class with serviceInstance() initialized to the given value.

        The state of the service instance associated with the deployment.

        Parameters:
        serviceInstance - The state of the service instance associated with the deployment.
      • fromServiceInstance

        public static DeploymentState fromServiceInstance​(Consumer<ServiceInstanceState.Builder> serviceInstance)
        Create an instance of this class with serviceInstance() initialized to the given value.

        The state of the service instance associated with the deployment.

        Parameters:
        serviceInstance - The state of the service instance associated with the deployment.
      • fromServicePipeline

        public static DeploymentState fromServicePipeline​(ServicePipelineState servicePipeline)
        Create an instance of this class with servicePipeline() initialized to the given value.

        The state of the service pipeline associated with the deployment.

        Parameters:
        servicePipeline - The state of the service pipeline associated with the deployment.
      • fromServicePipeline

        public static DeploymentState fromServicePipeline​(Consumer<ServicePipelineState.Builder> servicePipeline)
        Create an instance of this class with servicePipeline() initialized to the given value.

        The state of the service pipeline associated with the deployment.

        Parameters:
        servicePipeline - The state of the service pipeline associated with the deployment.