public static class HeatResourceHealth.HeatResourceHealthBuilder extends Object implements ResourceHealthBuilder
Constructor and Description |
---|
HeatResourceHealthBuilder()
Constructor to create a
HeatResourceHealth.HeatResourceHealthBuilder object
with a new, empty HeatResourceHealth object. |
HeatResourceHealthBuilder(HeatResourceHealth model)
Constructor for manipulation of an existing
HeatResourceHealth
object. |
Modifier and Type | Method and Description |
---|---|
ResourceHealth |
build()
Creates and return the Model Entity M
|
ResourceHealthBuilder |
from(ResourceHealth in)
Creates a Builder using the param M as the default values
|
ResourceHealthBuilder |
markUnhealthy(boolean markUnhealthy)
Set the unhealthy status of the resource.
|
ResourceHealthBuilder |
resourceStatusReason(String resourceStatusReason)
Set the resource status reason on the resource.
|
public HeatResourceHealthBuilder()
HeatResourceHealth.HeatResourceHealthBuilder
object
with a new, empty HeatResourceHealth
object.public HeatResourceHealthBuilder(HeatResourceHealth model)
HeatResourceHealth
object.model
- the HeatResourceHealth
object which is to be
modified.public ResourceHealth build()
Buildable.Builder
build
in interface Buildable.Builder<ResourceHealthBuilder,ResourceHealth>
public ResourceHealthBuilder from(ResourceHealth in)
Buildable.Builder
from
in interface Buildable.Builder<ResourceHealthBuilder,ResourceHealth>
public ResourceHealthBuilder markUnhealthy(boolean markUnhealthy)
ResourceHealthBuilder
markUnhealthy
in interface ResourceHealthBuilder
public ResourceHealthBuilder resourceStatusReason(String resourceStatusReason)
ResourceHealthBuilder
resourceStatusReason
in interface ResourceHealthBuilder
Copyright © 2017. All rights reserved.