@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CheckNoPublicAccessResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
CheckNoPublicAccessResult() |
Modifier and Type | Method and Description |
---|---|
CheckNoPublicAccessResult |
clone() |
boolean |
equals(Object obj) |
String |
getMessage()
The message indicating whether the specified policy allows public access to resources.
|
List<ReasonSummary> |
getReasons()
A list of reasons why the specified resource policy grants public access for the resource type.
|
String |
getResult()
The result of the check for public access to the specified resource type.
|
int |
hashCode() |
void |
setMessage(String message)
The message indicating whether the specified policy allows public access to resources.
|
void |
setReasons(Collection<ReasonSummary> reasons)
A list of reasons why the specified resource policy grants public access for the resource type.
|
void |
setResult(String result)
The result of the check for public access to the specified resource type.
|
String |
toString()
Returns a string representation of this object.
|
CheckNoPublicAccessResult |
withMessage(String message)
The message indicating whether the specified policy allows public access to resources.
|
CheckNoPublicAccessResult |
withReasons(Collection<ReasonSummary> reasons)
A list of reasons why the specified resource policy grants public access for the resource type.
|
CheckNoPublicAccessResult |
withReasons(ReasonSummary... reasons)
A list of reasons why the specified resource policy grants public access for the resource type.
|
CheckNoPublicAccessResult |
withResult(CheckNoPublicAccessResult result)
The result of the check for public access to the specified resource type.
|
CheckNoPublicAccessResult |
withResult(String result)
The result of the check for public access to the specified resource type.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setResult(String result)
The result of the check for public access to the specified resource type. If the result is PASS
, the
policy doesn't allow public access to the specified resource type. If the result is FAIL
, the policy
might allow public access to the specified resource type.
result
- The result of the check for public access to the specified resource type. If the result is
PASS
, the policy doesn't allow public access to the specified resource type. If the result is
FAIL
, the policy might allow public access to the specified resource type.CheckNoPublicAccessResult
public String getResult()
The result of the check for public access to the specified resource type. If the result is PASS
, the
policy doesn't allow public access to the specified resource type. If the result is FAIL
, the policy
might allow public access to the specified resource type.
PASS
, the policy doesn't allow public access to the specified resource type. If the result
is FAIL
, the policy might allow public access to the specified resource type.CheckNoPublicAccessResult
public CheckNoPublicAccessResult withResult(String result)
The result of the check for public access to the specified resource type. If the result is PASS
, the
policy doesn't allow public access to the specified resource type. If the result is FAIL
, the policy
might allow public access to the specified resource type.
result
- The result of the check for public access to the specified resource type. If the result is
PASS
, the policy doesn't allow public access to the specified resource type. If the result is
FAIL
, the policy might allow public access to the specified resource type.CheckNoPublicAccessResult
public CheckNoPublicAccessResult withResult(CheckNoPublicAccessResult result)
The result of the check for public access to the specified resource type. If the result is PASS
, the
policy doesn't allow public access to the specified resource type. If the result is FAIL
, the policy
might allow public access to the specified resource type.
result
- The result of the check for public access to the specified resource type. If the result is
PASS
, the policy doesn't allow public access to the specified resource type. If the result is
FAIL
, the policy might allow public access to the specified resource type.CheckNoPublicAccessResult
public void setMessage(String message)
The message indicating whether the specified policy allows public access to resources.
message
- The message indicating whether the specified policy allows public access to resources.public String getMessage()
The message indicating whether the specified policy allows public access to resources.
public CheckNoPublicAccessResult withMessage(String message)
The message indicating whether the specified policy allows public access to resources.
message
- The message indicating whether the specified policy allows public access to resources.public List<ReasonSummary> getReasons()
A list of reasons why the specified resource policy grants public access for the resource type.
public void setReasons(Collection<ReasonSummary> reasons)
A list of reasons why the specified resource policy grants public access for the resource type.
reasons
- A list of reasons why the specified resource policy grants public access for the resource type.public CheckNoPublicAccessResult withReasons(ReasonSummary... reasons)
A list of reasons why the specified resource policy grants public access for the resource type.
NOTE: This method appends the values to the existing list (if any). Use
setReasons(java.util.Collection)
or withReasons(java.util.Collection)
if you want to override
the existing values.
reasons
- A list of reasons why the specified resource policy grants public access for the resource type.public CheckNoPublicAccessResult withReasons(Collection<ReasonSummary> reasons)
A list of reasons why the specified resource policy grants public access for the resource type.
reasons
- A list of reasons why the specified resource policy grants public access for the resource type.public String toString()
toString
in class Object
Object.toString()
public CheckNoPublicAccessResult clone()