Class InputOrigin
- java.lang.Object
-
- software.amazon.awssdk.services.lightsail.model.InputOrigin
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<InputOrigin.Builder,InputOrigin>
@Generated("software.amazon.awssdk:codegen") public final class InputOrigin extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InputOrigin.Builder,InputOrigin>
Describes the origin resource of an Amazon Lightsail content delivery network (CDN) distribution.
An origin can be a Lightsail instance, bucket, container service, or load balancer. A distribution pulls content from an origin, caches it, and serves it to viewers via a worldwide network of edge servers.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceInputOrigin.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InputOrigin.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringname()The name of the origin resource.OriginProtocolPolicyEnumprotocolPolicy()The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull content.StringprotocolPolicyAsString()The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull content.RegionNameregionName()The AWS Region name of the origin resource.StringregionNameAsString()The AWS Region name of the origin resource.List<SdkField<?>>sdkFields()static Class<? extends InputOrigin.Builder>serializableBuilderClass()InputOrigin.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
-
name
public final String name()
The name of the origin resource.
- Returns:
- The name of the origin resource.
-
regionName
public final RegionName regionName()
The AWS Region name of the origin resource.
If the service returns an enum value that is not available in the current SDK version,
regionNamewill returnRegionName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromregionNameAsString().- Returns:
- The AWS Region name of the origin resource.
- See Also:
RegionName
-
regionNameAsString
public final String regionNameAsString()
The AWS Region name of the origin resource.
If the service returns an enum value that is not available in the current SDK version,
regionNamewill returnRegionName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromregionNameAsString().- Returns:
- The AWS Region name of the origin resource.
- See Also:
RegionName
-
protocolPolicy
public final OriginProtocolPolicyEnum protocolPolicy()
The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull content.
If the service returns an enum value that is not available in the current SDK version,
protocolPolicywill returnOriginProtocolPolicyEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprotocolPolicyAsString().- Returns:
- The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull content.
- See Also:
OriginProtocolPolicyEnum
-
protocolPolicyAsString
public final String protocolPolicyAsString()
The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull content.
If the service returns an enum value that is not available in the current SDK version,
protocolPolicywill returnOriginProtocolPolicyEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprotocolPolicyAsString().- Returns:
- The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull content.
- See Also:
OriginProtocolPolicyEnum
-
toBuilder
public InputOrigin.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<InputOrigin.Builder,InputOrigin>
-
builder
public static InputOrigin.Builder builder()
-
serializableBuilderClass
public static Class<? extends InputOrigin.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.
-
-