Class ConnectionState
- java.lang.Object
-
- com.azure.resourcemanager.eventgrid.models.ConnectionState
-
public final class ConnectionState extends Object
ConnectionState information.
-
-
Constructor Summary
Constructors Constructor Description ConnectionState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringactionsRequired()Get the actionsRequired property: Actions required (if any).Stringdescription()Get the description property: Description of the connection state.PersistedConnectionStatusstatus()Get the status property: Status of the connection.voidvalidate()Validates the instance.ConnectionStatewithActionsRequired(String actionsRequired)Set the actionsRequired property: Actions required (if any).ConnectionStatewithDescription(String description)Set the description property: Description of the connection state.ConnectionStatewithStatus(PersistedConnectionStatus status)Set the status property: Status of the connection.
-
-
-
Method Detail
-
status
public PersistedConnectionStatus status()
Get the status property: Status of the connection.- Returns:
- the status value.
-
withStatus
public ConnectionState withStatus(PersistedConnectionStatus status)
Set the status property: Status of the connection.- Parameters:
status- the status value to set.- Returns:
- the ConnectionState object itself.
-
description
public String description()
Get the description property: Description of the connection state.- Returns:
- the description value.
-
withDescription
public ConnectionState withDescription(String description)
Set the description property: Description of the connection state.- Parameters:
description- the description value to set.- Returns:
- the ConnectionState object itself.
-
actionsRequired
public String actionsRequired()
Get the actionsRequired property: Actions required (if any).- Returns:
- the actionsRequired value.
-
withActionsRequired
public ConnectionState withActionsRequired(String actionsRequired)
Set the actionsRequired property: Actions required (if any).- Parameters:
actionsRequired- the actionsRequired value to set.- Returns:
- the ConnectionState object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-