@Generated(value="software.amazon.awssdk:codegen") public class ContextEntry extends Object implements ToCopyableBuilder<ContextEntry.Builder,ContextEntry>
Contains information about a condition context key. It includes the name of the key and specifies the value (or
values, if the context key supports multiple values) to use in the simulation. This information is used when
evaluating the Condition elements of the input policies.
This data type is used as an input parameter to SimulateCustomPolicy and
SimulateCustomPolicy .
| Modifier and Type | Class and Description |
|---|---|
static interface |
ContextEntry.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ContextEntry.Builder |
builder() |
String |
contextKeyName()
The full name of a condition context key, including the service prefix.
|
ContextKeyTypeEnum |
contextKeyType()
The data type of the value (or values) specified in the
ContextKeyValues parameter. |
String |
contextKeyTypeAsString()
The data type of the value (or values) specified in the
ContextKeyValues parameter. |
List<String> |
contextKeyValues()
The value (or values, if the condition context key supports multiple values) to provide to the simulation for use
when the key is referenced by a
Condition element in an input policy. |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
static Class<? extends ContextEntry.Builder> |
serializableBuilderClass() |
ContextEntry.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copypublic String contextKeyName()
The full name of a condition context key, including the service prefix. For example, aws:SourceIp or
s3:VersionId.
aws:SourceIp or s3:VersionId.public List<String> contextKeyValues()
The value (or values, if the condition context key supports multiple values) to provide to the simulation for use
when the key is referenced by a Condition element in an input policy.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
Condition element in an input policy.public ContextKeyTypeEnum contextKeyType()
The data type of the value (or values) specified in the ContextKeyValues parameter.
If the service returns an enum value that is not available in the current SDK version, contextKeyType
will return ContextKeyTypeEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from contextKeyTypeAsString().
ContextKeyValues parameter.ContextKeyTypeEnumpublic String contextKeyTypeAsString()
The data type of the value (or values) specified in the ContextKeyValues parameter.
If the service returns an enum value that is not available in the current SDK version, contextKeyType
will return ContextKeyTypeEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from contextKeyTypeAsString().
ContextKeyValues parameter.ContextKeyTypeEnumpublic ContextEntry.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<ContextEntry.Builder,ContextEntry>public static ContextEntry.Builder builder()
public static Class<? extends ContextEntry.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.