Class ProtectConfigurationRuleSetNumberOverride
- java.lang.Object
-
- software.amazon.awssdk.services.pinpointsmsvoicev2.model.ProtectConfigurationRuleSetNumberOverride
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ProtectConfigurationRuleSetNumberOverride.Builder,ProtectConfigurationRuleSetNumberOverride>
@Generated("software.amazon.awssdk:codegen") public final class ProtectConfigurationRuleSetNumberOverride extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ProtectConfigurationRuleSetNumberOverride.Builder,ProtectConfigurationRuleSetNumberOverride>
Provides details on a RuleSetNumberOverride.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceProtectConfigurationRuleSetNumberOverride.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ProtectConfigurationRuleOverrideActionaction()The action for the rule to perform of either blocking or allowing messages to the destination phone number.StringactionAsString()The action for the rule to perform of either blocking or allowing messages to the destination phone number.static ProtectConfigurationRuleSetNumberOverride.Builderbuilder()InstantcreatedTimestamp()The time when the rule was created, in UNIX epoch time format.StringdestinationPhoneNumber()The destination phone number in E.164 format.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)InstantexpirationTimestamp()The time the rule will expire at.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringisoCountryCode()The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ProtectConfigurationRuleSetNumberOverride.Builder>serializableBuilderClass()ProtectConfigurationRuleSetNumberOverride.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
destinationPhoneNumber
public final String destinationPhoneNumber()
The destination phone number in E.164 format.
- Returns:
- The destination phone number in E.164 format.
-
createdTimestamp
public final Instant createdTimestamp()
The time when the rule was created, in UNIX epoch time format.
- Returns:
- The time when the rule was created, in UNIX epoch time format.
-
action
public final ProtectConfigurationRuleOverrideAction action()
The action for the rule to perform of either blocking or allowing messages to the destination phone number.
If the service returns an enum value that is not available in the current SDK version,
actionwill returnProtectConfigurationRuleOverrideAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromactionAsString().- Returns:
- The action for the rule to perform of either blocking or allowing messages to the destination phone number.
- See Also:
ProtectConfigurationRuleOverrideAction
-
actionAsString
public final String actionAsString()
The action for the rule to perform of either blocking or allowing messages to the destination phone number.
If the service returns an enum value that is not available in the current SDK version,
actionwill returnProtectConfigurationRuleOverrideAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromactionAsString().- Returns:
- The action for the rule to perform of either blocking or allowing messages to the destination phone number.
- See Also:
ProtectConfigurationRuleOverrideAction
-
isoCountryCode
public final String isoCountryCode()
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
- Returns:
- The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
-
expirationTimestamp
public final Instant expirationTimestamp()
The time the rule will expire at. If
ExpirationTimestampis not set then the rule will not expire.- Returns:
- The time the rule will expire at. If
ExpirationTimestampis not set then the rule will not expire.
-
toBuilder
public ProtectConfigurationRuleSetNumberOverride.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ProtectConfigurationRuleSetNumberOverride.Builder,ProtectConfigurationRuleSetNumberOverride>
-
builder
public static ProtectConfigurationRuleSetNumberOverride.Builder builder()
-
serializableBuilderClass
public static Class<? extends ProtectConfigurationRuleSetNumberOverride.Builder> serializableBuilderClass()
-
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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-