Class TrafficConfig
- java.lang.Object
-
- software.amazon.awssdk.services.cloudfront.model.TrafficConfig
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TrafficConfig.Builder,TrafficConfig>
@Generated("software.amazon.awssdk:codegen") public final class TrafficConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TrafficConfig.Builder,TrafficConfig>
The traffic configuration of your continuous deployment.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTrafficConfig.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TrafficConfig.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends TrafficConfig.Builder>serializableBuilderClass()ContinuousDeploymentSingleHeaderConfigsingleHeaderConfig()Determines which HTTP requests are sent to the staging distribution.ContinuousDeploymentSingleWeightConfigsingleWeightConfig()Contains the percentage of traffic to send to the staging distribution.TrafficConfig.BuildertoBuilder()StringtoString()Returns a string representation of this object.ContinuousDeploymentPolicyTypetype()The type of traffic configuration.StringtypeAsString()The type of traffic configuration.-
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
-
singleWeightConfig
public final ContinuousDeploymentSingleWeightConfig singleWeightConfig()
Contains the percentage of traffic to send to the staging distribution.
- Returns:
- Contains the percentage of traffic to send to the staging distribution.
-
singleHeaderConfig
public final ContinuousDeploymentSingleHeaderConfig singleHeaderConfig()
Determines which HTTP requests are sent to the staging distribution.
- Returns:
- Determines which HTTP requests are sent to the staging distribution.
-
type
public final ContinuousDeploymentPolicyType type()
The type of traffic configuration.
If the service returns an enum value that is not available in the current SDK version,
typewill returnContinuousDeploymentPolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of traffic configuration.
- See Also:
ContinuousDeploymentPolicyType
-
typeAsString
public final String typeAsString()
The type of traffic configuration.
If the service returns an enum value that is not available in the current SDK version,
typewill returnContinuousDeploymentPolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of traffic configuration.
- See Also:
ContinuousDeploymentPolicyType
-
toBuilder
public TrafficConfig.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TrafficConfig.Builder,TrafficConfig>
-
builder
public static TrafficConfig.Builder builder()
-
serializableBuilderClass
public static Class<? extends TrafficConfig.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
-
-