public class CreateDimensionRequest extends AmazonWebServiceRequest implements java.io.Serializable
Create a dimension that you can use to limit the scope of a metric used in a
security profile for AWS IoT Device Defender. For example, using a
TOPIC_FILTER dimension, you can narrow down the scope of the
metric only to MQTT topics whose name match the pattern specified in the
dimension.
| Constructor and Description |
|---|
CreateDimensionRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getClientRequestToken()
Each dimension must have a unique client request token.
|
java.lang.String |
getName()
A unique identifier for the dimension.
|
java.util.List<java.lang.String> |
getStringValues()
Specifies the value or list of values for the dimension.
|
java.util.List<Tag> |
getTags()
Metadata that can be used to manage the dimension.
|
java.lang.String |
getType()
Specifies the type of dimension.
|
int |
hashCode() |
void |
setClientRequestToken(java.lang.String clientRequestToken)
Each dimension must have a unique client request token.
|
void |
setName(java.lang.String name)
A unique identifier for the dimension.
|
void |
setStringValues(java.util.Collection<java.lang.String> stringValues)
Specifies the value or list of values for the dimension.
|
void |
setTags(java.util.Collection<Tag> tags)
Metadata that can be used to manage the dimension.
|
void |
setType(DimensionType type)
Specifies the type of dimension.
|
void |
setType(java.lang.String type)
Specifies the type of dimension.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateDimensionRequest |
withClientRequestToken(java.lang.String clientRequestToken)
Each dimension must have a unique client request token.
|
CreateDimensionRequest |
withName(java.lang.String name)
A unique identifier for the dimension.
|
CreateDimensionRequest |
withStringValues(java.util.Collection<java.lang.String> stringValues)
Specifies the value or list of values for the dimension.
|
CreateDimensionRequest |
withStringValues(java.lang.String... stringValues)
Specifies the value or list of values for the dimension.
|
CreateDimensionRequest |
withTags(java.util.Collection<Tag> tags)
Metadata that can be used to manage the dimension.
|
CreateDimensionRequest |
withTags(Tag... tags)
Metadata that can be used to manage the dimension.
|
CreateDimensionRequest |
withType(DimensionType type)
Specifies the type of dimension.
|
CreateDimensionRequest |
withType(java.lang.String type)
Specifies the type of dimension.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getName()
A unique identifier for the dimension. Choose something that describes the type and value to make it easy to remember what it does.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
A unique identifier for the dimension. Choose something that describes the type and value to make it easy to remember what it does.
public void setName(java.lang.String name)
A unique identifier for the dimension. Choose something that describes the type and value to make it easy to remember what it does.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
name - A unique identifier for the dimension. Choose something that describes the type and value to make it easy to remember what it does.
public CreateDimensionRequest withName(java.lang.String name)
A unique identifier for the dimension. Choose something that describes the type and value to make it easy to remember what it does.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
name - A unique identifier for the dimension. Choose something that describes the type and value to make it easy to remember what it does.
public java.lang.String getType()
Specifies the type of dimension. Supported types:
TOPIC_FILTER.
Constraints:
Allowed Values: TOPIC_FILTER
Specifies the type of dimension. Supported types:
TOPIC_FILTER.
DimensionTypepublic void setType(java.lang.String type)
Specifies the type of dimension. Supported types:
TOPIC_FILTER.
Constraints:
Allowed Values: TOPIC_FILTER
type -
Specifies the type of dimension. Supported types:
TOPIC_FILTER.
DimensionTypepublic CreateDimensionRequest withType(java.lang.String type)
Specifies the type of dimension. Supported types:
TOPIC_FILTER.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: TOPIC_FILTER
type -
Specifies the type of dimension. Supported types:
TOPIC_FILTER.
DimensionTypepublic void setType(DimensionType type)
Specifies the type of dimension. Supported types:
TOPIC_FILTER.
Constraints:
Allowed Values: TOPIC_FILTER
type -
Specifies the type of dimension. Supported types:
TOPIC_FILTER.
DimensionTypepublic CreateDimensionRequest withType(DimensionType type)
Specifies the type of dimension. Supported types:
TOPIC_FILTER.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: TOPIC_FILTER
type -
Specifies the type of dimension. Supported types:
TOPIC_FILTER.
DimensionTypepublic java.util.List<java.lang.String> getStringValues()
Specifies the value or list of values for the dimension. For
TOPIC_FILTER dimensions, this is a pattern used to match the
MQTT topic (for example, "admin/#").
Specifies the value or list of values for the dimension. For
TOPIC_FILTER dimensions, this is a pattern used to
match the MQTT topic (for example, "admin/#").
public void setStringValues(java.util.Collection<java.lang.String> stringValues)
Specifies the value or list of values for the dimension. For
TOPIC_FILTER dimensions, this is a pattern used to match the
MQTT topic (for example, "admin/#").
stringValues -
Specifies the value or list of values for the dimension. For
TOPIC_FILTER dimensions, this is a pattern used
to match the MQTT topic (for example, "admin/#").
public CreateDimensionRequest withStringValues(java.lang.String... stringValues)
Specifies the value or list of values for the dimension. For
TOPIC_FILTER dimensions, this is a pattern used to match the
MQTT topic (for example, "admin/#").
Returns a reference to this object so that method calls can be chained together.
stringValues -
Specifies the value or list of values for the dimension. For
TOPIC_FILTER dimensions, this is a pattern used
to match the MQTT topic (for example, "admin/#").
public CreateDimensionRequest withStringValues(java.util.Collection<java.lang.String> stringValues)
Specifies the value or list of values for the dimension. For
TOPIC_FILTER dimensions, this is a pattern used to match the
MQTT topic (for example, "admin/#").
Returns a reference to this object so that method calls can be chained together.
stringValues -
Specifies the value or list of values for the dimension. For
TOPIC_FILTER dimensions, this is a pattern used
to match the MQTT topic (for example, "admin/#").
public java.util.List<Tag> getTags()
Metadata that can be used to manage the dimension.
Metadata that can be used to manage the dimension.
public void setTags(java.util.Collection<Tag> tags)
Metadata that can be used to manage the dimension.
tags - Metadata that can be used to manage the dimension.
public CreateDimensionRequest withTags(Tag... tags)
Metadata that can be used to manage the dimension.
Returns a reference to this object so that method calls can be chained together.
tags - Metadata that can be used to manage the dimension.
public CreateDimensionRequest withTags(java.util.Collection<Tag> tags)
Metadata that can be used to manage the dimension.
Returns a reference to this object so that method calls can be chained together.
tags - Metadata that can be used to manage the dimension.
public java.lang.String getClientRequestToken()
Each dimension must have a unique client request token. If you try to create a new dimension with the same token as a dimension that already exists, an exception occurs. If you omit this value, AWS SDKs will automatically generate a unique client request.
Constraints:
Length: 1 - 64
Pattern: ^[a-zA-Z0-9-_]+$
Each dimension must have a unique client request token. If you try to create a new dimension with the same token as a dimension that already exists, an exception occurs. If you omit this value, AWS SDKs will automatically generate a unique client request.
public void setClientRequestToken(java.lang.String clientRequestToken)
Each dimension must have a unique client request token. If you try to create a new dimension with the same token as a dimension that already exists, an exception occurs. If you omit this value, AWS SDKs will automatically generate a unique client request.
Constraints:
Length: 1 - 64
Pattern: ^[a-zA-Z0-9-_]+$
clientRequestToken - Each dimension must have a unique client request token. If you try to create a new dimension with the same token as a dimension that already exists, an exception occurs. If you omit this value, AWS SDKs will automatically generate a unique client request.
public CreateDimensionRequest withClientRequestToken(java.lang.String clientRequestToken)
Each dimension must have a unique client request token. If you try to create a new dimension with the same token as a dimension that already exists, an exception occurs. If you omit this value, AWS SDKs will automatically generate a unique client request.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: ^[a-zA-Z0-9-_]+$
clientRequestToken - Each dimension must have a unique client request token. If you try to create a new dimension with the same token as a dimension that already exists, an exception occurs. If you omit this value, AWS SDKs will automatically generate a unique client request.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.