Class CreateProtectionGroupRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.shield.model.ShieldRequest
-
- software.amazon.awssdk.services.shield.model.CreateProtectionGroupRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateProtectionGroupRequest.Builder,CreateProtectionGroupRequest>
@Generated("software.amazon.awssdk:codegen") public final class CreateProtectionGroupRequest extends ShieldRequest implements ToCopyableBuilder<CreateProtectionGroupRequest.Builder,CreateProtectionGroupRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreateProtectionGroupRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ProtectionGroupAggregationaggregation()Defines how Shield combines resource data for the group in order to detect, mitigate, and report events.StringaggregationAsString()Defines how Shield combines resource data for the group in order to detect, mitigate, and report events.static CreateProtectionGroupRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasMembers()For responses, this returns true if the service returned a value for the Members property.booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.List<String>members()The Amazon Resource Names (ARNs) of the resources to include in the protection group.ProtectionGroupPatternpattern()The criteria to use to choose the protected resources for inclusion in the group.StringpatternAsString()The criteria to use to choose the protected resources for inclusion in the group.StringprotectionGroupId()The name of the protection group.ProtectedResourceTyperesourceType()The resource type to include in the protection group.StringresourceTypeAsString()The resource type to include in the protection group.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends CreateProtectionGroupRequest.Builder>serializableBuilderClass()List<Tag>tags()One or more tag key-value pairs for the protection group.CreateProtectionGroupRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
protectionGroupId
public 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.
- Returns:
- 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.
-
aggregation
public final ProtectionGroupAggregation aggregation()
Defines how 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 Amazon CloudFront and origin resources for CloudFront distributions.
If the service returns an enum value that is not available in the current SDK version,
aggregationwill returnProtectionGroupAggregation.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromaggregationAsString().- Returns:
- Defines how 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 Amazon CloudFront and origin resources for CloudFront distributions.
-
- See Also:
ProtectionGroupAggregation
-
-
aggregationAsString
public final String aggregationAsString()
Defines how 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 Amazon CloudFront and origin resources for CloudFront distributions.
If the service returns an enum value that is not available in the current SDK version,
aggregationwill returnProtectionGroupAggregation.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromaggregationAsString().- Returns:
- Defines how 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 Amazon CloudFront and origin resources for CloudFront distributions.
-
- See Also:
ProtectionGroupAggregation
-
-
pattern
public 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,
patternwill returnProtectionGroupPattern.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompatternAsString().- Returns:
- 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.
- See Also:
ProtectionGroupPattern
-
patternAsString
public 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,
patternwill returnProtectionGroupPattern.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompatternAsString().- Returns:
- 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.
- See Also:
ProtectionGroupPattern
-
resourceType
public 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
PatterntoBY_RESOURCE_TYPEand you must not set it for any otherPatternsetting.If the service returns an enum value that is not available in the current SDK version,
resourceTypewill returnProtectedResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromresourceTypeAsString().- Returns:
- 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
PatterntoBY_RESOURCE_TYPEand you must not set it for any otherPatternsetting. - See Also:
ProtectedResourceType
-
resourceTypeAsString
public 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
PatterntoBY_RESOURCE_TYPEand you must not set it for any otherPatternsetting.If the service returns an enum value that is not available in the current SDK version,
resourceTypewill returnProtectedResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromresourceTypeAsString().- Returns:
- 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
PatterntoBY_RESOURCE_TYPEand you must not set it for any otherPatternsetting. - See Also:
ProtectedResourceType
-
hasMembers
public final boolean hasMembers()
For responses, this returns true if the service returned a value for the Members property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
members
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
PatterntoARBITRARYand you must not set it for any otherPatternsetting.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasMembers()method.- Returns:
- The Amazon Resource Names (ARNs) of the resources to include in the protection group. You must set this
when you set
PatterntoARBITRARYand you must not set it for any otherPatternsetting.
-
hasTags
public final boolean hasTags()
For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
tags
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.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTags()method.- Returns:
- One or more tag key-value pairs for the protection group.
-
toBuilder
public CreateProtectionGroupRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateProtectionGroupRequest.Builder,CreateProtectionGroupRequest>- Specified by:
toBuilderin classShieldRequest
-
builder
public static CreateProtectionGroupRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends CreateProtectionGroupRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-