@Generated(value="software.amazon.awssdk:codegen") public final class Origin extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Origin.Builder,Origin>
Describes the origin resource of an Amazon Lightsail content delivery network (CDN) distribution.
An origin can be a Lightsail instance, bucket, or load balancer. A distribution pulls content from an origin, caches it, and serves it to viewers via a worldwide network of edge servers.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Origin.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Origin.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
name()
The name of the origin resource.
|
OriginProtocolPolicyEnum |
protocolPolicy()
The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull
content.
|
String |
protocolPolicyAsString()
The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull
content.
|
RegionName |
regionName()
The AWS Region name of the origin resource.
|
String |
regionNameAsString()
The AWS Region name of the origin resource.
|
ResourceType |
resourceType()
The resource type of the origin resource (e.g., Instance).
|
String |
resourceTypeAsString()
The resource type of the origin resource (e.g., Instance).
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Origin.Builder> |
serializableBuilderClass() |
Origin.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
The name of the origin resource.
public final ResourceType resourceType()
The resource type of the origin resource (e.g., Instance).
If the service returns an enum value that is not available in the current SDK version, resourceType will
return ResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
resourceTypeAsString().
ResourceTypepublic final String resourceTypeAsString()
The resource type of the origin resource (e.g., Instance).
If the service returns an enum value that is not available in the current SDK version, resourceType will
return ResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
resourceTypeAsString().
ResourceTypepublic 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, regionName will
return RegionName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
regionNameAsString().
RegionNamepublic 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, regionName will
return RegionName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
regionNameAsString().
RegionNamepublic 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, protocolPolicy
will return OriginProtocolPolicyEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from protocolPolicyAsString().
OriginProtocolPolicyEnumpublic 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, protocolPolicy
will return OriginProtocolPolicyEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from protocolPolicyAsString().
OriginProtocolPolicyEnumpublic Origin.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Origin.Builder,Origin>public static Origin.Builder builder()
public static Class<? extends Origin.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.