@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ExternalAccessDetails extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about an external access finding.
Constructor and Description |
---|
ExternalAccessDetails() |
Modifier and Type | Method and Description |
---|---|
ExternalAccessDetails |
addConditionEntry(String key,
String value)
Add a single Condition entry
|
ExternalAccessDetails |
addPrincipalEntry(String key,
String value)
Add a single Principal entry
|
ExternalAccessDetails |
clearConditionEntries()
Removes all the entries added into Condition.
|
ExternalAccessDetails |
clearPrincipalEntries()
Removes all the entries added into Principal.
|
ExternalAccessDetails |
clone() |
boolean |
equals(Object obj) |
List<String> |
getAction()
The action in the analyzed policy statement that an external principal has permission to use.
|
Map<String,String> |
getCondition()
The condition in the analyzed policy statement that resulted in an external access finding.
|
Boolean |
getIsPublic()
Specifies whether the external access finding is public.
|
Map<String,String> |
getPrincipal()
The external principal that has access to a resource within the zone of trust.
|
List<FindingSource> |
getSources()
The sources of the external access finding.
|
int |
hashCode() |
Boolean |
isPublic()
Specifies whether the external access finding is public.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAction(Collection<String> action)
The action in the analyzed policy statement that an external principal has permission to use.
|
void |
setCondition(Map<String,String> condition)
The condition in the analyzed policy statement that resulted in an external access finding.
|
void |
setIsPublic(Boolean isPublic)
Specifies whether the external access finding is public.
|
void |
setPrincipal(Map<String,String> principal)
The external principal that has access to a resource within the zone of trust.
|
void |
setSources(Collection<FindingSource> sources)
The sources of the external access finding.
|
String |
toString()
Returns a string representation of this object.
|
ExternalAccessDetails |
withAction(Collection<String> action)
The action in the analyzed policy statement that an external principal has permission to use.
|
ExternalAccessDetails |
withAction(String... action)
The action in the analyzed policy statement that an external principal has permission to use.
|
ExternalAccessDetails |
withCondition(Map<String,String> condition)
The condition in the analyzed policy statement that resulted in an external access finding.
|
ExternalAccessDetails |
withIsPublic(Boolean isPublic)
Specifies whether the external access finding is public.
|
ExternalAccessDetails |
withPrincipal(Map<String,String> principal)
The external principal that has access to a resource within the zone of trust.
|
ExternalAccessDetails |
withSources(Collection<FindingSource> sources)
The sources of the external access finding.
|
ExternalAccessDetails |
withSources(FindingSource... sources)
The sources of the external access finding.
|
public List<String> getAction()
The action in the analyzed policy statement that an external principal has permission to use.
public void setAction(Collection<String> action)
The action in the analyzed policy statement that an external principal has permission to use.
action
- The action in the analyzed policy statement that an external principal has permission to use.public ExternalAccessDetails withAction(String... action)
The action in the analyzed policy statement that an external principal has permission to use.
NOTE: This method appends the values to the existing list (if any). Use
setAction(java.util.Collection)
or withAction(java.util.Collection)
if you want to override the
existing values.
action
- The action in the analyzed policy statement that an external principal has permission to use.public ExternalAccessDetails withAction(Collection<String> action)
The action in the analyzed policy statement that an external principal has permission to use.
action
- The action in the analyzed policy statement that an external principal has permission to use.public Map<String,String> getCondition()
The condition in the analyzed policy statement that resulted in an external access finding.
public void setCondition(Map<String,String> condition)
The condition in the analyzed policy statement that resulted in an external access finding.
condition
- The condition in the analyzed policy statement that resulted in an external access finding.public ExternalAccessDetails withCondition(Map<String,String> condition)
The condition in the analyzed policy statement that resulted in an external access finding.
condition
- The condition in the analyzed policy statement that resulted in an external access finding.public ExternalAccessDetails addConditionEntry(String key, String value)
public ExternalAccessDetails clearConditionEntries()
public void setIsPublic(Boolean isPublic)
Specifies whether the external access finding is public.
isPublic
- Specifies whether the external access finding is public.public Boolean getIsPublic()
Specifies whether the external access finding is public.
public ExternalAccessDetails withIsPublic(Boolean isPublic)
Specifies whether the external access finding is public.
isPublic
- Specifies whether the external access finding is public.public Boolean isPublic()
Specifies whether the external access finding is public.
public Map<String,String> getPrincipal()
The external principal that has access to a resource within the zone of trust.
public void setPrincipal(Map<String,String> principal)
The external principal that has access to a resource within the zone of trust.
principal
- The external principal that has access to a resource within the zone of trust.public ExternalAccessDetails withPrincipal(Map<String,String> principal)
The external principal that has access to a resource within the zone of trust.
principal
- The external principal that has access to a resource within the zone of trust.public ExternalAccessDetails addPrincipalEntry(String key, String value)
public ExternalAccessDetails clearPrincipalEntries()
public List<FindingSource> getSources()
The sources of the external access finding. This indicates how the access that generated the finding is granted. It is populated for Amazon S3 bucket findings.
public void setSources(Collection<FindingSource> sources)
The sources of the external access finding. This indicates how the access that generated the finding is granted. It is populated for Amazon S3 bucket findings.
sources
- The sources of the external access finding. This indicates how the access that generated the finding is
granted. It is populated for Amazon S3 bucket findings.public ExternalAccessDetails withSources(FindingSource... sources)
The sources of the external access finding. This indicates how the access that generated the finding is granted. It is populated for Amazon S3 bucket findings.
NOTE: This method appends the values to the existing list (if any). Use
setSources(java.util.Collection)
or withSources(java.util.Collection)
if you want to override
the existing values.
sources
- The sources of the external access finding. This indicates how the access that generated the finding is
granted. It is populated for Amazon S3 bucket findings.public ExternalAccessDetails withSources(Collection<FindingSource> sources)
The sources of the external access finding. This indicates how the access that generated the finding is granted. It is populated for Amazon S3 bucket findings.
sources
- The sources of the external access finding. This indicates how the access that generated the finding is
granted. It is populated for Amazon S3 bucket findings.public String toString()
toString
in class Object
Object.toString()
public ExternalAccessDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.