Class ComponentStateDetails
- java.lang.Object
-
- com.azure.resourcemanager.policyinsights.models.ComponentStateDetails
-
public final class ComponentStateDetails extends Object
Component state details.
-
-
Constructor Summary
Constructors Constructor Description ComponentStateDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
additionalProperties()
Get the additionalProperties property: Component state details.String
complianceState()
Get the complianceState property: Component compliance state.String
id()
Get the id property: Component Id.String
name()
Get the name property: Component name.OffsetDateTime
timestamp()
Get the timestamp property: Component compliance evaluation timestamp.String
type()
Get the type property: Component type.void
validate()
Validates the instance.ComponentStateDetails
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: Component state details.ComponentStateDetails
withComplianceState(String complianceState)
Set the complianceState property: Component compliance state.ComponentStateDetails
withId(String id)
Set the id property: Component Id.ComponentStateDetails
withName(String name)
Set the name property: Component name.ComponentStateDetails
withTimestamp(OffsetDateTime timestamp)
Set the timestamp property: Component compliance evaluation timestamp.ComponentStateDetails
withType(String type)
Set the type property: Component type.
-
-
-
Method Detail
-
id
public String id()
Get the id property: Component Id.- Returns:
- the id value.
-
withId
public ComponentStateDetails withId(String id)
Set the id property: Component Id.- Parameters:
id
- the id value to set.- Returns:
- the ComponentStateDetails object itself.
-
type
public String type()
Get the type property: Component type.- Returns:
- the type value.
-
withType
public ComponentStateDetails withType(String type)
Set the type property: Component type.- Parameters:
type
- the type value to set.- Returns:
- the ComponentStateDetails object itself.
-
name
public String name()
Get the name property: Component name.- Returns:
- the name value.
-
withName
public ComponentStateDetails withName(String name)
Set the name property: Component name.- Parameters:
name
- the name value to set.- Returns:
- the ComponentStateDetails object itself.
-
timestamp
public OffsetDateTime timestamp()
Get the timestamp property: Component compliance evaluation timestamp.- Returns:
- the timestamp value.
-
withTimestamp
public ComponentStateDetails withTimestamp(OffsetDateTime timestamp)
Set the timestamp property: Component compliance evaluation timestamp.- Parameters:
timestamp
- the timestamp value to set.- Returns:
- the ComponentStateDetails object itself.
-
complianceState
public String complianceState()
Get the complianceState property: Component compliance state.- Returns:
- the complianceState value.
-
withComplianceState
public ComponentStateDetails withComplianceState(String complianceState)
Set the complianceState property: Component compliance state.- Parameters:
complianceState
- the complianceState value to set.- Returns:
- the ComponentStateDetails object itself.
-
additionalProperties
public Map<String,Object> additionalProperties()
Get the additionalProperties property: Component state details.- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public ComponentStateDetails withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: Component state details.- Parameters:
additionalProperties
- the additionalProperties value to set.- Returns:
- the ComponentStateDetails object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-