@Generated(value="software.amazon.awssdk:codegen") public final class CreateProtectionGroupRequest extends ShieldRequest implements ToCopyableBuilder<CreateProtectionGroupRequest.Builder,CreateProtectionGroupRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateProtectionGroupRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
ProtectionGroupAggregation |
aggregation()
Defines how AWS Shield combines resource data for the group in order to detect, mitigate, and report events.
|
String |
aggregationAsString()
Defines how AWS Shield combines resource data for the group in order to detect, mitigate, and report events.
|
static CreateProtectionGroupRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasMembers()
Returns true if the Members property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
boolean |
hasTags()
Returns true if the Tags property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
List<String> |
members()
The Amazon Resource Names (ARNs) of the resources to include in the protection group.
|
ProtectionGroupPattern |
pattern()
The criteria to use to choose the protected resources for inclusion in the group.
|
String |
patternAsString()
The criteria to use to choose the protected resources for inclusion in the group.
|
String |
protectionGroupId()
The name of the protection group.
|
ProtectedResourceType |
resourceType()
The resource type to include in the protection group.
|
String |
resourceTypeAsString()
The resource type to include in the protection group.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateProtectionGroupRequest.Builder> |
serializableBuilderClass() |
List<Tag> |
tags()
One or more tag key-value pairs for the protection group.
|
CreateProtectionGroupRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String protectionGroupId()
The name of the protection group. You use this to identify the protection group in lists and to manage the protection group, for example to update, delete, or describe it.
public final ProtectionGroupAggregation aggregation()
Defines how AWS Shield combines resource data for the group in order to detect, mitigate, and report events.
Sum - Use the total traffic across the group. This is a good choice for most cases. Examples include Elastic IP addresses for EC2 instances that scale manually or automatically.
Mean - Use the average of the traffic across the group. This is a good choice for resources that share traffic uniformly. Examples include accelerators and load balancers.
Max - Use the highest traffic from each resource. This is useful for resources that don't share traffic and for resources that share that traffic in a non-uniform way. Examples include CloudFront distributions and origin resources for CloudFront distributions.
If the service returns an enum value that is not available in the current SDK version, aggregation will
return ProtectionGroupAggregation.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from aggregationAsString().
Sum - Use the total traffic across the group. This is a good choice for most cases. Examples include Elastic IP addresses for EC2 instances that scale manually or automatically.
Mean - Use the average of the traffic across the group. This is a good choice for resources that share traffic uniformly. Examples include accelerators and load balancers.
Max - Use the highest traffic from each resource. This is useful for resources that don't share traffic and for resources that share that traffic in a non-uniform way. Examples include CloudFront distributions and origin resources for CloudFront distributions.
ProtectionGroupAggregationpublic final String aggregationAsString()
Defines how AWS Shield combines resource data for the group in order to detect, mitigate, and report events.
Sum - Use the total traffic across the group. This is a good choice for most cases. Examples include Elastic IP addresses for EC2 instances that scale manually or automatically.
Mean - Use the average of the traffic across the group. This is a good choice for resources that share traffic uniformly. Examples include accelerators and load balancers.
Max - Use the highest traffic from each resource. This is useful for resources that don't share traffic and for resources that share that traffic in a non-uniform way. Examples include CloudFront distributions and origin resources for CloudFront distributions.
If the service returns an enum value that is not available in the current SDK version, aggregation will
return ProtectionGroupAggregation.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from aggregationAsString().
Sum - Use the total traffic across the group. This is a good choice for most cases. Examples include Elastic IP addresses for EC2 instances that scale manually or automatically.
Mean - Use the average of the traffic across the group. This is a good choice for resources that share traffic uniformly. Examples include accelerators and load balancers.
Max - Use the highest traffic from each resource. This is useful for resources that don't share traffic and for resources that share that traffic in a non-uniform way. Examples include CloudFront distributions and origin resources for CloudFront distributions.
ProtectionGroupAggregationpublic final ProtectionGroupPattern pattern()
The criteria to use to choose the protected resources for inclusion in the group. You can include all resources that have protections, provide a list of resource Amazon Resource Names (ARNs), or include all resources of a specified resource type.
If the service returns an enum value that is not available in the current SDK version, pattern will
return ProtectionGroupPattern.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from patternAsString().
ProtectionGroupPatternpublic final String patternAsString()
The criteria to use to choose the protected resources for inclusion in the group. You can include all resources that have protections, provide a list of resource Amazon Resource Names (ARNs), or include all resources of a specified resource type.
If the service returns an enum value that is not available in the current SDK version, pattern will
return ProtectionGroupPattern.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from patternAsString().
ProtectionGroupPatternpublic final ProtectedResourceType resourceType()
The resource type to include in the protection group. All protected resources of this type are included in the
protection group. Newly protected resources of this type are automatically added to the group. You must set this
when you set Pattern to BY_RESOURCE_TYPE and you must not set it for any other
Pattern setting.
If the service returns an enum value that is not available in the current SDK version, resourceType will
return ProtectedResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from resourceTypeAsString().
Pattern to BY_RESOURCE_TYPE and you must not set it
for any other Pattern setting.ProtectedResourceTypepublic final String resourceTypeAsString()
The resource type to include in the protection group. All protected resources of this type are included in the
protection group. Newly protected resources of this type are automatically added to the group. You must set this
when you set Pattern to BY_RESOURCE_TYPE and you must not set it for any other
Pattern setting.
If the service returns an enum value that is not available in the current SDK version, resourceType will
return ProtectedResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from resourceTypeAsString().
Pattern to BY_RESOURCE_TYPE and you must not set it
for any other Pattern setting.ProtectedResourceTypepublic final boolean hasMembers()
public final List<String> members()
The Amazon Resource Names (ARNs) of the resources to include in the protection group. You must set this when you
set Pattern to ARBITRARY and you must not set it for any other Pattern
setting.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasMembers() to see if a value was sent in this field.
Pattern to ARBITRARY and you must not set it for any other
Pattern setting.public final boolean hasTags()
public final List<Tag> tags()
One or more tag key-value pairs for the protection group.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTags() to see if a value was sent in this field.
public CreateProtectionGroupRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateProtectionGroupRequest.Builder,CreateProtectionGroupRequest>toBuilder in class ShieldRequestpublic static CreateProtectionGroupRequest.Builder builder()
public static Class<? extends CreateProtectionGroupRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2021. All rights reserved.