public class NonCompliantResource extends Object implements Serializable
Information about the resource that was non-compliant with the audit check.
| Constructor and Description |
|---|
NonCompliantResource() |
| Modifier and Type | Method and Description |
|---|---|
NonCompliantResource |
addadditionalInfoEntry(String key,
String value)
Additional information about the non-compliant resource.
|
NonCompliantResource |
clearadditionalInfoEntries()
Removes all the entries added into additionalInfo.
|
boolean |
equals(Object obj) |
Map<String,String> |
getAdditionalInfo()
Additional information about the non-compliant resource.
|
ResourceIdentifier |
getResourceIdentifier()
Information identifying the non-compliant resource.
|
String |
getResourceType()
The type of the non-compliant resource.
|
int |
hashCode() |
void |
setAdditionalInfo(Map<String,String> additionalInfo)
Additional information about the non-compliant resource.
|
void |
setResourceIdentifier(ResourceIdentifier resourceIdentifier)
Information identifying the non-compliant resource.
|
void |
setResourceType(ResourceType resourceType)
The type of the non-compliant resource.
|
void |
setResourceType(String resourceType)
The type of the non-compliant resource.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
NonCompliantResource |
withAdditionalInfo(Map<String,String> additionalInfo)
Additional information about the non-compliant resource.
|
NonCompliantResource |
withResourceIdentifier(ResourceIdentifier resourceIdentifier)
Information identifying the non-compliant resource.
|
NonCompliantResource |
withResourceType(ResourceType resourceType)
The type of the non-compliant resource.
|
NonCompliantResource |
withResourceType(String resourceType)
The type of the non-compliant resource.
|
public String getResourceType()
The type of the non-compliant resource.
Constraints:
Allowed Values: DEVICE_CERTIFICATE, CA_CERTIFICATE, IOT_POLICY,
COGNITO_IDENTITY_POOL, CLIENT_ID, ACCOUNT_SETTINGS
The type of the non-compliant resource.
ResourceTypepublic void setResourceType(String resourceType)
The type of the non-compliant resource.
Constraints:
Allowed Values: DEVICE_CERTIFICATE, CA_CERTIFICATE, IOT_POLICY,
COGNITO_IDENTITY_POOL, CLIENT_ID, ACCOUNT_SETTINGS
resourceType - The type of the non-compliant resource.
ResourceTypepublic NonCompliantResource withResourceType(String resourceType)
The type of the non-compliant resource.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: DEVICE_CERTIFICATE, CA_CERTIFICATE, IOT_POLICY,
COGNITO_IDENTITY_POOL, CLIENT_ID, ACCOUNT_SETTINGS
resourceType - The type of the non-compliant resource.
ResourceTypepublic void setResourceType(ResourceType resourceType)
The type of the non-compliant resource.
Constraints:
Allowed Values: DEVICE_CERTIFICATE, CA_CERTIFICATE, IOT_POLICY,
COGNITO_IDENTITY_POOL, CLIENT_ID, ACCOUNT_SETTINGS
resourceType - The type of the non-compliant resource.
ResourceTypepublic NonCompliantResource withResourceType(ResourceType resourceType)
The type of the non-compliant resource.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: DEVICE_CERTIFICATE, CA_CERTIFICATE, IOT_POLICY,
COGNITO_IDENTITY_POOL, CLIENT_ID, ACCOUNT_SETTINGS
resourceType - The type of the non-compliant resource.
ResourceTypepublic ResourceIdentifier getResourceIdentifier()
Information identifying the non-compliant resource.
Information identifying the non-compliant resource.
public void setResourceIdentifier(ResourceIdentifier resourceIdentifier)
Information identifying the non-compliant resource.
resourceIdentifier - Information identifying the non-compliant resource.
public NonCompliantResource withResourceIdentifier(ResourceIdentifier resourceIdentifier)
Information identifying the non-compliant resource.
Returns a reference to this object so that method calls can be chained together.
resourceIdentifier - Information identifying the non-compliant resource.
public Map<String,String> getAdditionalInfo()
Additional information about the non-compliant resource.
Additional information about the non-compliant resource.
public void setAdditionalInfo(Map<String,String> additionalInfo)
Additional information about the non-compliant resource.
additionalInfo - Additional information about the non-compliant resource.
public NonCompliantResource withAdditionalInfo(Map<String,String> additionalInfo)
Additional information about the non-compliant resource.
Returns a reference to this object so that method calls can be chained together.
additionalInfo - Additional information about the non-compliant resource.
public NonCompliantResource addadditionalInfoEntry(String key, String value)
Additional information about the non-compliant resource.
The method adds a new key-value pair into additionalInfo parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into additionalInfo.value - The corresponding value of the entry to be added into
additionalInfo.public NonCompliantResource clearadditionalInfoEntries()
Returns a reference to this object so that method calls can be chained together.
public String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.