Class ContextEntry
- All Implemented Interfaces:
Serializable,Cloneable
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 .
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanThe full name of a condition context key, including the service prefix.The data type of the value (or values) specified in theContextKeyValuesparameter.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 aConditionelement in an input policy.inthashCode()voidsetContextKeyName(String contextKeyName) The full name of a condition context key, including the service prefix.voidsetContextKeyType(ContextKeyTypeEnum contextKeyType) The data type of the value (or values) specified in theContextKeyValuesparameter.voidsetContextKeyType(String contextKeyType) The data type of the value (or values) specified in theContextKeyValuesparameter.voidsetContextKeyValues(Collection<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 aConditionelement in an input policy.toString()Returns a string representation of this object; useful for testing and debugging.withContextKeyName(String contextKeyName) The full name of a condition context key, including the service prefix.withContextKeyType(ContextKeyTypeEnum contextKeyType) The data type of the value (or values) specified in theContextKeyValuesparameter.withContextKeyType(String contextKeyType) The data type of the value (or values) specified in theContextKeyValuesparameter.withContextKeyValues(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 aConditionelement in an input policy.withContextKeyValues(Collection<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 aConditionelement in an input policy.
-
Constructor Details
-
ContextEntry
public ContextEntry()
-
-
Method Details
-
setContextKeyName
The full name of a condition context key, including the service prefix. For example,
aws:SourceIpors3:VersionId.- Parameters:
contextKeyName- The full name of a condition context key, including the service prefix. For example,aws:SourceIpors3:VersionId.
-
getContextKeyName
The full name of a condition context key, including the service prefix. For example,
aws:SourceIpors3:VersionId.- Returns:
- The full name of a condition context key, including the service
prefix. For example,
aws:SourceIpors3:VersionId.
-
withContextKeyName
The full name of a condition context key, including the service prefix. For example,
aws:SourceIpors3:VersionId.- Parameters:
contextKeyName- The full name of a condition context key, including the service prefix. For example,aws:SourceIpors3:VersionId.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getContextKeyValues
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
Conditionelement in an input policy.- Returns:
- 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
Conditionelement in an input policy.
-
setContextKeyValues
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
Conditionelement in an input policy.- Parameters:
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 aConditionelement in an input policy.
-
withContextKeyValues
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
Conditionelement in an input policy.NOTE: This method appends the values to the existing list (if any). Use
setContextKeyValues(java.util.Collection)orwithContextKeyValues(java.util.Collection)if you want to override the existing values.- Parameters:
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 aConditionelement in an input policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withContextKeyValues
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
Conditionelement in an input policy.- Parameters:
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 aConditionelement in an input policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setContextKeyType
The data type of the value (or values) specified in the
ContextKeyValuesparameter.- Parameters:
contextKeyType- The data type of the value (or values) specified in theContextKeyValuesparameter.- See Also:
-
getContextKeyType
The data type of the value (or values) specified in the
ContextKeyValuesparameter.- Returns:
- The data type of the value (or values) specified in the
ContextKeyValuesparameter. - See Also:
-
withContextKeyType
The data type of the value (or values) specified in the
ContextKeyValuesparameter.- Parameters:
contextKeyType- The data type of the value (or values) specified in theContextKeyValuesparameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setContextKeyType
The data type of the value (or values) specified in the
ContextKeyValuesparameter.- Parameters:
contextKeyType- The data type of the value (or values) specified in theContextKeyValuesparameter.- See Also:
-
withContextKeyType
The data type of the value (or values) specified in the
ContextKeyValuesparameter.- Parameters:
contextKeyType- The data type of the value (or values) specified in theContextKeyValuesparameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-