Class ComplianceStatus
- java.lang.Object
-
- com.azure.resourcemanager.kubernetesconfiguration.models.ComplianceStatus
-
public final class ComplianceStatus extends Object
Compliance Status details.
-
-
Constructor Summary
Constructors Constructor Description ComplianceStatus()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComplianceStateType
complianceState()
Get the complianceState property: The compliance state of the configuration.OffsetDateTime
lastConfigApplied()
Get the lastConfigApplied property: Datetime the configuration was last applied.String
message()
Get the message property: Message from when the configuration was applied.MessageLevelType
messageLevel()
Get the messageLevel property: Level of the message.void
validate()
Validates the instance.ComplianceStatus
withLastConfigApplied(OffsetDateTime lastConfigApplied)
Set the lastConfigApplied property: Datetime the configuration was last applied.ComplianceStatus
withMessage(String message)
Set the message property: Message from when the configuration was applied.ComplianceStatus
withMessageLevel(MessageLevelType messageLevel)
Set the messageLevel property: Level of the message.
-
-
-
Method Detail
-
complianceState
public ComplianceStateType complianceState()
Get the complianceState property: The compliance state of the configuration.- Returns:
- the complianceState value.
-
lastConfigApplied
public OffsetDateTime lastConfigApplied()
Get the lastConfigApplied property: Datetime the configuration was last applied.- Returns:
- the lastConfigApplied value.
-
withLastConfigApplied
public ComplianceStatus withLastConfigApplied(OffsetDateTime lastConfigApplied)
Set the lastConfigApplied property: Datetime the configuration was last applied.- Parameters:
lastConfigApplied
- the lastConfigApplied value to set.- Returns:
- the ComplianceStatus object itself.
-
message
public String message()
Get the message property: Message from when the configuration was applied.- Returns:
- the message value.
-
withMessage
public ComplianceStatus withMessage(String message)
Set the message property: Message from when the configuration was applied.- Parameters:
message
- the message value to set.- Returns:
- the ComplianceStatus object itself.
-
messageLevel
public MessageLevelType messageLevel()
Get the messageLevel property: Level of the message.- Returns:
- the messageLevel value.
-
withMessageLevel
public ComplianceStatus withMessageLevel(MessageLevelType messageLevel)
Set the messageLevel property: Level of the message.- Parameters:
messageLevel
- the messageLevel value to set.- Returns:
- the ComplianceStatus object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-