Class GetInsightsError
- java.lang.Object
-
- com.azure.resourcemanager.securityinsights.models.GetInsightsError
-
public final class GetInsightsError extends Object
GetInsights Query Errors.
-
-
Constructor Summary
Constructors Constructor Description GetInsightsError()
Creates an instance of GetInsightsError class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
errorMessage()
Get the errorMessage property: the error message.String
kind()
Get the kind property: the query kind.String
queryId()
Get the queryId property: the query id.void
validate()
Validates the instance.GetInsightsError
withErrorMessage(String errorMessage)
Set the errorMessage property: the error message.GetInsightsError
withKind(String kind)
Set the kind property: the query kind.GetInsightsError
withQueryId(String queryId)
Set the queryId property: the query id.
-
-
-
Method Detail
-
kind
public String kind()
Get the kind property: the query kind.- Returns:
- the kind value.
-
withKind
public GetInsightsError withKind(String kind)
Set the kind property: the query kind.- Parameters:
kind
- the kind value to set.- Returns:
- the GetInsightsError object itself.
-
queryId
public String queryId()
Get the queryId property: the query id.- Returns:
- the queryId value.
-
withQueryId
public GetInsightsError withQueryId(String queryId)
Set the queryId property: the query id.- Parameters:
queryId
- the queryId value to set.- Returns:
- the GetInsightsError object itself.
-
errorMessage
public String errorMessage()
Get the errorMessage property: the error message.- Returns:
- the errorMessage value.
-
withErrorMessage
public GetInsightsError withErrorMessage(String errorMessage)
Set the errorMessage property: the error message.- Parameters:
errorMessage
- the errorMessage value to set.- Returns:
- the GetInsightsError object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-