@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AnalyzedResource extends Object implements Serializable, Cloneable, StructuredPojo
Contains details about the analyzed resource.
Constructor and Description |
---|
AnalyzedResource() |
Modifier and Type | Method and Description |
---|---|
AnalyzedResource |
clone() |
boolean |
equals(Object obj) |
List<String> |
getActions()
The actions that an external principal is granted permission to use by the policy that generated the finding.
|
Date |
getAnalyzedAt()
The time at which the resource was analyzed.
|
Date |
getCreatedAt()
The time at which the finding was created.
|
String |
getError()
An error message.
|
Boolean |
getIsPublic()
Indicates whether the policy that generated the finding grants public access to the resource.
|
String |
getResourceArn()
The ARN of the resource that was analyzed.
|
String |
getResourceOwnerAccount()
The Amazon Web Services account ID that owns the resource.
|
String |
getResourceType()
The type of the resource that was analyzed.
|
List<String> |
getSharedVia()
Indicates how the access that generated the finding is granted.
|
String |
getStatus()
The current status of the finding generated from the analyzed resource.
|
Date |
getUpdatedAt()
The time at which the finding was updated.
|
int |
hashCode() |
Boolean |
isPublic()
Indicates whether the policy that generated the finding grants public access to the resource.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setActions(Collection<String> actions)
The actions that an external principal is granted permission to use by the policy that generated the finding.
|
void |
setAnalyzedAt(Date analyzedAt)
The time at which the resource was analyzed.
|
void |
setCreatedAt(Date createdAt)
The time at which the finding was created.
|
void |
setError(String error)
An error message.
|
void |
setIsPublic(Boolean isPublic)
Indicates whether the policy that generated the finding grants public access to the resource.
|
void |
setResourceArn(String resourceArn)
The ARN of the resource that was analyzed.
|
void |
setResourceOwnerAccount(String resourceOwnerAccount)
The Amazon Web Services account ID that owns the resource.
|
void |
setResourceType(String resourceType)
The type of the resource that was analyzed.
|
void |
setSharedVia(Collection<String> sharedVia)
Indicates how the access that generated the finding is granted.
|
void |
setStatus(String status)
The current status of the finding generated from the analyzed resource.
|
void |
setUpdatedAt(Date updatedAt)
The time at which the finding was updated.
|
String |
toString()
Returns a string representation of this object.
|
AnalyzedResource |
withActions(Collection<String> actions)
The actions that an external principal is granted permission to use by the policy that generated the finding.
|
AnalyzedResource |
withActions(String... actions)
The actions that an external principal is granted permission to use by the policy that generated the finding.
|
AnalyzedResource |
withAnalyzedAt(Date analyzedAt)
The time at which the resource was analyzed.
|
AnalyzedResource |
withCreatedAt(Date createdAt)
The time at which the finding was created.
|
AnalyzedResource |
withError(String error)
An error message.
|
AnalyzedResource |
withIsPublic(Boolean isPublic)
Indicates whether the policy that generated the finding grants public access to the resource.
|
AnalyzedResource |
withResourceArn(String resourceArn)
The ARN of the resource that was analyzed.
|
AnalyzedResource |
withResourceOwnerAccount(String resourceOwnerAccount)
The Amazon Web Services account ID that owns the resource.
|
AnalyzedResource |
withResourceType(ResourceType resourceType)
The type of the resource that was analyzed.
|
AnalyzedResource |
withResourceType(String resourceType)
The type of the resource that was analyzed.
|
AnalyzedResource |
withSharedVia(Collection<String> sharedVia)
Indicates how the access that generated the finding is granted.
|
AnalyzedResource |
withSharedVia(String... sharedVia)
Indicates how the access that generated the finding is granted.
|
AnalyzedResource |
withStatus(FindingStatus status)
The current status of the finding generated from the analyzed resource.
|
AnalyzedResource |
withStatus(String status)
The current status of the finding generated from the analyzed resource.
|
AnalyzedResource |
withUpdatedAt(Date updatedAt)
The time at which the finding was updated.
|
public void setResourceArn(String resourceArn)
The ARN of the resource that was analyzed.
resourceArn
- The ARN of the resource that was analyzed.public String getResourceArn()
The ARN of the resource that was analyzed.
public AnalyzedResource withResourceArn(String resourceArn)
The ARN of the resource that was analyzed.
resourceArn
- The ARN of the resource that was analyzed.public void setResourceType(String resourceType)
The type of the resource that was analyzed.
resourceType
- The type of the resource that was analyzed.ResourceType
public String getResourceType()
The type of the resource that was analyzed.
ResourceType
public AnalyzedResource withResourceType(String resourceType)
The type of the resource that was analyzed.
resourceType
- The type of the resource that was analyzed.ResourceType
public AnalyzedResource withResourceType(ResourceType resourceType)
The type of the resource that was analyzed.
resourceType
- The type of the resource that was analyzed.ResourceType
public void setCreatedAt(Date createdAt)
The time at which the finding was created.
createdAt
- The time at which the finding was created.public Date getCreatedAt()
The time at which the finding was created.
public AnalyzedResource withCreatedAt(Date createdAt)
The time at which the finding was created.
createdAt
- The time at which the finding was created.public void setAnalyzedAt(Date analyzedAt)
The time at which the resource was analyzed.
analyzedAt
- The time at which the resource was analyzed.public Date getAnalyzedAt()
The time at which the resource was analyzed.
public AnalyzedResource withAnalyzedAt(Date analyzedAt)
The time at which the resource was analyzed.
analyzedAt
- The time at which the resource was analyzed.public void setUpdatedAt(Date updatedAt)
The time at which the finding was updated.
updatedAt
- The time at which the finding was updated.public Date getUpdatedAt()
The time at which the finding was updated.
public AnalyzedResource withUpdatedAt(Date updatedAt)
The time at which the finding was updated.
updatedAt
- The time at which the finding was updated.public void setIsPublic(Boolean isPublic)
Indicates whether the policy that generated the finding grants public access to the resource.
isPublic
- Indicates whether the policy that generated the finding grants public access to the resource.public Boolean getIsPublic()
Indicates whether the policy that generated the finding grants public access to the resource.
public AnalyzedResource withIsPublic(Boolean isPublic)
Indicates whether the policy that generated the finding grants public access to the resource.
isPublic
- Indicates whether the policy that generated the finding grants public access to the resource.public Boolean isPublic()
Indicates whether the policy that generated the finding grants public access to the resource.
public List<String> getActions()
The actions that an external principal is granted permission to use by the policy that generated the finding.
public void setActions(Collection<String> actions)
The actions that an external principal is granted permission to use by the policy that generated the finding.
actions
- The actions that an external principal is granted permission to use by the policy that generated the
finding.public AnalyzedResource withActions(String... actions)
The actions that an external principal is granted permission to use by the policy that generated the finding.
NOTE: This method appends the values to the existing list (if any). Use
setActions(java.util.Collection)
or withActions(java.util.Collection)
if you want to override
the existing values.
actions
- The actions that an external principal is granted permission to use by the policy that generated the
finding.public AnalyzedResource withActions(Collection<String> actions)
The actions that an external principal is granted permission to use by the policy that generated the finding.
actions
- The actions that an external principal is granted permission to use by the policy that generated the
finding.public List<String> getSharedVia()
Indicates how the access that generated the finding is granted. This is populated for Amazon S3 bucket findings.
public void setSharedVia(Collection<String> sharedVia)
Indicates how the access that generated the finding is granted. This is populated for Amazon S3 bucket findings.
sharedVia
- Indicates how the access that generated the finding is granted. This is populated for Amazon S3 bucket
findings.public AnalyzedResource withSharedVia(String... sharedVia)
Indicates how the access that generated the finding is granted. This is populated for Amazon S3 bucket findings.
NOTE: This method appends the values to the existing list (if any). Use
setSharedVia(java.util.Collection)
or withSharedVia(java.util.Collection)
if you want to
override the existing values.
sharedVia
- Indicates how the access that generated the finding is granted. This is populated for Amazon S3 bucket
findings.public AnalyzedResource withSharedVia(Collection<String> sharedVia)
Indicates how the access that generated the finding is granted. This is populated for Amazon S3 bucket findings.
sharedVia
- Indicates how the access that generated the finding is granted. This is populated for Amazon S3 bucket
findings.public void setStatus(String status)
The current status of the finding generated from the analyzed resource.
status
- The current status of the finding generated from the analyzed resource.FindingStatus
public String getStatus()
The current status of the finding generated from the analyzed resource.
FindingStatus
public AnalyzedResource withStatus(String status)
The current status of the finding generated from the analyzed resource.
status
- The current status of the finding generated from the analyzed resource.FindingStatus
public AnalyzedResource withStatus(FindingStatus status)
The current status of the finding generated from the analyzed resource.
status
- The current status of the finding generated from the analyzed resource.FindingStatus
public void setResourceOwnerAccount(String resourceOwnerAccount)
The Amazon Web Services account ID that owns the resource.
resourceOwnerAccount
- The Amazon Web Services account ID that owns the resource.public String getResourceOwnerAccount()
The Amazon Web Services account ID that owns the resource.
public AnalyzedResource withResourceOwnerAccount(String resourceOwnerAccount)
The Amazon Web Services account ID that owns the resource.
resourceOwnerAccount
- The Amazon Web Services account ID that owns the resource.public void setError(String error)
An error message.
error
- An error message.public String getError()
An error message.
public AnalyzedResource withError(String error)
An error message.
error
- An error message.public String toString()
toString
in class Object
Object.toString()
public AnalyzedResource clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.