@Generated(value="software.amazon.awssdk:codegen") public final class Rule extends Object implements StructuredPojo, 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) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
Map<String,String> |
parameters()
The minimum and maximum parameters that are associated with the rule.
|
static Class<? extends Rule.Builder> |
serializableBuilderClass() |
Rule.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
RuleType |
type()
The type of attribute validation rule.
|
String |
typeAsString()
The type of attribute validation rule.
|
copy
public 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()
.
RuleType
public 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()
.
RuleType
public 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.
public Rule.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Rule.Builder,Rule>
public static Rule.Builder builder()
public static Class<? extends Rule.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.