@Generated(value="software.amazon.awssdk:codegen") public final class Rule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Rule.Builder,Rule>
Contains an Amazon Resource Name (ARN) and parameters that are associated with the rule.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Rule.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Rule.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasParameters()
Returns true if the Parameters property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
Map<String,String> |
parameters()
The minimum and maximum parameters that are associated with the rule.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Rule.Builder> |
serializableBuilderClass() |
Rule.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
RuleType |
type()
The type of attribute validation rule.
|
String |
typeAsString()
The type of attribute validation rule.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final RuleType type()
The type of attribute validation rule.
If the service returns an enum value that is not available in the current SDK version, type will return
RuleType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
RuleTypepublic final String typeAsString()
The type of attribute validation rule.
If the service returns an enum value that is not available in the current SDK version, type will return
RuleType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
RuleTypepublic final boolean hasParameters()
public final Map<String,String> parameters()
The minimum and maximum parameters that are associated with the rule.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasParameters() to see if a value was sent in this field.
public Rule.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Rule.Builder,Rule>public static Rule.Builder builder()
public static Class<? extends Rule.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.