@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceMetadataOptions extends Object implements Serializable, Cloneable, StructuredPojo
The metadata options for the instance.
Constructor and Description |
---|
InstanceMetadataOptions() |
Modifier and Type | Method and Description |
---|---|
InstanceMetadataOptions |
clone() |
boolean |
equals(Object obj) |
String |
getHttpEndpoint()
Indicates whether the HTTP metadata endpoint on your instances is enabled or disabled.
|
String |
getHttpProtocolIpv6()
Indicates whether the IPv6 endpoint for the instance metadata service is enabled or disabled.
|
Integer |
getHttpPutResponseHopLimit()
The desired HTTP PUT response hop limit for instance metadata requests.
|
String |
getHttpTokens()
The state of token usage for your instance metadata requests.
|
String |
getState()
The state of the metadata option changes.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setHttpEndpoint(String httpEndpoint)
Indicates whether the HTTP metadata endpoint on your instances is enabled or disabled.
|
void |
setHttpProtocolIpv6(String httpProtocolIpv6)
Indicates whether the IPv6 endpoint for the instance metadata service is enabled or disabled.
|
void |
setHttpPutResponseHopLimit(Integer httpPutResponseHopLimit)
The desired HTTP PUT response hop limit for instance metadata requests.
|
void |
setHttpTokens(String httpTokens)
The state of token usage for your instance metadata requests.
|
void |
setState(String state)
The state of the metadata option changes.
|
String |
toString()
Returns a string representation of this object.
|
InstanceMetadataOptions |
withHttpEndpoint(HttpEndpoint httpEndpoint)
Indicates whether the HTTP metadata endpoint on your instances is enabled or disabled.
|
InstanceMetadataOptions |
withHttpEndpoint(String httpEndpoint)
Indicates whether the HTTP metadata endpoint on your instances is enabled or disabled.
|
InstanceMetadataOptions |
withHttpProtocolIpv6(HttpProtocolIpv6 httpProtocolIpv6)
Indicates whether the IPv6 endpoint for the instance metadata service is enabled or disabled.
|
InstanceMetadataOptions |
withHttpProtocolIpv6(String httpProtocolIpv6)
Indicates whether the IPv6 endpoint for the instance metadata service is enabled or disabled.
|
InstanceMetadataOptions |
withHttpPutResponseHopLimit(Integer httpPutResponseHopLimit)
The desired HTTP PUT response hop limit for instance metadata requests.
|
InstanceMetadataOptions |
withHttpTokens(HttpTokens httpTokens)
The state of token usage for your instance metadata requests.
|
InstanceMetadataOptions |
withHttpTokens(String httpTokens)
The state of token usage for your instance metadata requests.
|
InstanceMetadataOptions |
withState(InstanceMetadataState state)
The state of the metadata option changes.
|
InstanceMetadataOptions |
withState(String state)
The state of the metadata option changes.
|
public void setState(String state)
The state of the metadata option changes.
The following states are possible:
pending
- The metadata options are being updated. The instance is not yet ready to process metadata
traffic with the new selection.
applied
- The metadata options have been successfully applied to the instance.
state
- The state of the metadata option changes.
The following states are possible:
pending
- The metadata options are being updated. The instance is not yet ready to process
metadata traffic with the new selection.
applied
- The metadata options have been successfully applied to the instance.
InstanceMetadataState
public String getState()
The state of the metadata option changes.
The following states are possible:
pending
- The metadata options are being updated. The instance is not yet ready to process metadata
traffic with the new selection.
applied
- The metadata options have been successfully applied to the instance.
The following states are possible:
pending
- The metadata options are being updated. The instance is not yet ready to process
metadata traffic with the new selection.
applied
- The metadata options have been successfully applied to the instance.
InstanceMetadataState
public InstanceMetadataOptions withState(String state)
The state of the metadata option changes.
The following states are possible:
pending
- The metadata options are being updated. The instance is not yet ready to process metadata
traffic with the new selection.
applied
- The metadata options have been successfully applied to the instance.
state
- The state of the metadata option changes.
The following states are possible:
pending
- The metadata options are being updated. The instance is not yet ready to process
metadata traffic with the new selection.
applied
- The metadata options have been successfully applied to the instance.
InstanceMetadataState
public InstanceMetadataOptions withState(InstanceMetadataState state)
The state of the metadata option changes.
The following states are possible:
pending
- The metadata options are being updated. The instance is not yet ready to process metadata
traffic with the new selection.
applied
- The metadata options have been successfully applied to the instance.
state
- The state of the metadata option changes.
The following states are possible:
pending
- The metadata options are being updated. The instance is not yet ready to process
metadata traffic with the new selection.
applied
- The metadata options have been successfully applied to the instance.
InstanceMetadataState
public void setHttpTokens(String httpTokens)
The state of token usage for your instance metadata requests.
If the state is optional
, you can choose whether to retrieve instance metadata with a signed token
header on your request. If you retrieve the IAM role credentials without a token, the version 1.0 role
credentials are returned. If you retrieve the IAM role credentials by using a valid signed token, the version 2.0
role credentials are returned.
If the state is required
, you must send a signed token header with all instance metadata retrieval
requests. In this state, retrieving the IAM role credential always returns the version 2.0 credentials. The
version 1.0 credentials are not available.
Not all instance blueprints in Lightsail support version 2.0 credentials. Use the MetadataNoToken
instance metric to track the number of calls to the instance metadata service that are using version 1.0
credentials. For more information, see Viewing instance metrics in Amazon Lightsail in the Amazon Lightsail Developer Guide.
httpTokens
- The state of token usage for your instance metadata requests.
If the state is optional
, you can choose whether to retrieve instance metadata with a signed
token header on your request. If you retrieve the IAM role credentials without a token, the version 1.0
role credentials are returned. If you retrieve the IAM role credentials by using a valid signed token, the
version 2.0 role credentials are returned.
If the state is required
, you must send a signed token header with all instance metadata
retrieval requests. In this state, retrieving the IAM role credential always returns the version 2.0
credentials. The version 1.0 credentials are not available.
Not all instance blueprints in Lightsail support version 2.0 credentials. Use the
MetadataNoToken
instance metric to track the number of calls to the instance metadata service
that are using version 1.0 credentials. For more information, see Viewing instance metrics in Amazon Lightsail in the Amazon Lightsail Developer Guide.
HttpTokens
public String getHttpTokens()
The state of token usage for your instance metadata requests.
If the state is optional
, you can choose whether to retrieve instance metadata with a signed token
header on your request. If you retrieve the IAM role credentials without a token, the version 1.0 role
credentials are returned. If you retrieve the IAM role credentials by using a valid signed token, the version 2.0
role credentials are returned.
If the state is required
, you must send a signed token header with all instance metadata retrieval
requests. In this state, retrieving the IAM role credential always returns the version 2.0 credentials. The
version 1.0 credentials are not available.
Not all instance blueprints in Lightsail support version 2.0 credentials. Use the MetadataNoToken
instance metric to track the number of calls to the instance metadata service that are using version 1.0
credentials. For more information, see Viewing instance metrics in Amazon Lightsail in the Amazon Lightsail Developer Guide.
If the state is optional
, you can choose whether to retrieve instance metadata with a signed
token header on your request. If you retrieve the IAM role credentials without a token, the version 1.0
role credentials are returned. If you retrieve the IAM role credentials by using a valid signed token,
the version 2.0 role credentials are returned.
If the state is required
, you must send a signed token header with all instance metadata
retrieval requests. In this state, retrieving the IAM role credential always returns the version 2.0
credentials. The version 1.0 credentials are not available.
Not all instance blueprints in Lightsail support version 2.0 credentials. Use the
MetadataNoToken
instance metric to track the number of calls to the instance metadata
service that are using version 1.0 credentials. For more information, see Viewing instance metrics in Amazon Lightsail in the Amazon Lightsail Developer Guide.
HttpTokens
public InstanceMetadataOptions withHttpTokens(String httpTokens)
The state of token usage for your instance metadata requests.
If the state is optional
, you can choose whether to retrieve instance metadata with a signed token
header on your request. If you retrieve the IAM role credentials without a token, the version 1.0 role
credentials are returned. If you retrieve the IAM role credentials by using a valid signed token, the version 2.0
role credentials are returned.
If the state is required
, you must send a signed token header with all instance metadata retrieval
requests. In this state, retrieving the IAM role credential always returns the version 2.0 credentials. The
version 1.0 credentials are not available.
Not all instance blueprints in Lightsail support version 2.0 credentials. Use the MetadataNoToken
instance metric to track the number of calls to the instance metadata service that are using version 1.0
credentials. For more information, see Viewing instance metrics in Amazon Lightsail in the Amazon Lightsail Developer Guide.
httpTokens
- The state of token usage for your instance metadata requests.
If the state is optional
, you can choose whether to retrieve instance metadata with a signed
token header on your request. If you retrieve the IAM role credentials without a token, the version 1.0
role credentials are returned. If you retrieve the IAM role credentials by using a valid signed token, the
version 2.0 role credentials are returned.
If the state is required
, you must send a signed token header with all instance metadata
retrieval requests. In this state, retrieving the IAM role credential always returns the version 2.0
credentials. The version 1.0 credentials are not available.
Not all instance blueprints in Lightsail support version 2.0 credentials. Use the
MetadataNoToken
instance metric to track the number of calls to the instance metadata service
that are using version 1.0 credentials. For more information, see Viewing instance metrics in Amazon Lightsail in the Amazon Lightsail Developer Guide.
HttpTokens
public InstanceMetadataOptions withHttpTokens(HttpTokens httpTokens)
The state of token usage for your instance metadata requests.
If the state is optional
, you can choose whether to retrieve instance metadata with a signed token
header on your request. If you retrieve the IAM role credentials without a token, the version 1.0 role
credentials are returned. If you retrieve the IAM role credentials by using a valid signed token, the version 2.0
role credentials are returned.
If the state is required
, you must send a signed token header with all instance metadata retrieval
requests. In this state, retrieving the IAM role credential always returns the version 2.0 credentials. The
version 1.0 credentials are not available.
Not all instance blueprints in Lightsail support version 2.0 credentials. Use the MetadataNoToken
instance metric to track the number of calls to the instance metadata service that are using version 1.0
credentials. For more information, see Viewing instance metrics in Amazon Lightsail in the Amazon Lightsail Developer Guide.
httpTokens
- The state of token usage for your instance metadata requests.
If the state is optional
, you can choose whether to retrieve instance metadata with a signed
token header on your request. If you retrieve the IAM role credentials without a token, the version 1.0
role credentials are returned. If you retrieve the IAM role credentials by using a valid signed token, the
version 2.0 role credentials are returned.
If the state is required
, you must send a signed token header with all instance metadata
retrieval requests. In this state, retrieving the IAM role credential always returns the version 2.0
credentials. The version 1.0 credentials are not available.
Not all instance blueprints in Lightsail support version 2.0 credentials. Use the
MetadataNoToken
instance metric to track the number of calls to the instance metadata service
that are using version 1.0 credentials. For more information, see Viewing instance metrics in Amazon Lightsail in the Amazon Lightsail Developer Guide.
HttpTokens
public void setHttpEndpoint(String httpEndpoint)
Indicates whether the HTTP metadata endpoint on your instances is enabled or disabled.
If the value is disabled
, you cannot access your instance metadata.
httpEndpoint
- Indicates whether the HTTP metadata endpoint on your instances is enabled or disabled.
If the value is disabled
, you cannot access your instance metadata.
HttpEndpoint
public String getHttpEndpoint()
Indicates whether the HTTP metadata endpoint on your instances is enabled or disabled.
If the value is disabled
, you cannot access your instance metadata.
If the value is disabled
, you cannot access your instance metadata.
HttpEndpoint
public InstanceMetadataOptions withHttpEndpoint(String httpEndpoint)
Indicates whether the HTTP metadata endpoint on your instances is enabled or disabled.
If the value is disabled
, you cannot access your instance metadata.
httpEndpoint
- Indicates whether the HTTP metadata endpoint on your instances is enabled or disabled.
If the value is disabled
, you cannot access your instance metadata.
HttpEndpoint
public InstanceMetadataOptions withHttpEndpoint(HttpEndpoint httpEndpoint)
Indicates whether the HTTP metadata endpoint on your instances is enabled or disabled.
If the value is disabled
, you cannot access your instance metadata.
httpEndpoint
- Indicates whether the HTTP metadata endpoint on your instances is enabled or disabled.
If the value is disabled
, you cannot access your instance metadata.
HttpEndpoint
public void setHttpPutResponseHopLimit(Integer httpPutResponseHopLimit)
The desired HTTP PUT response hop limit for instance metadata requests. A larger number means that the instance metadata requests can travel farther.
httpPutResponseHopLimit
- The desired HTTP PUT response hop limit for instance metadata requests. A larger number means that the
instance metadata requests can travel farther.public Integer getHttpPutResponseHopLimit()
The desired HTTP PUT response hop limit for instance metadata requests. A larger number means that the instance metadata requests can travel farther.
public InstanceMetadataOptions withHttpPutResponseHopLimit(Integer httpPutResponseHopLimit)
The desired HTTP PUT response hop limit for instance metadata requests. A larger number means that the instance metadata requests can travel farther.
httpPutResponseHopLimit
- The desired HTTP PUT response hop limit for instance metadata requests. A larger number means that the
instance metadata requests can travel farther.public void setHttpProtocolIpv6(String httpProtocolIpv6)
Indicates whether the IPv6 endpoint for the instance metadata service is enabled or disabled.
httpProtocolIpv6
- Indicates whether the IPv6 endpoint for the instance metadata service is enabled or disabled.HttpProtocolIpv6
public String getHttpProtocolIpv6()
Indicates whether the IPv6 endpoint for the instance metadata service is enabled or disabled.
HttpProtocolIpv6
public InstanceMetadataOptions withHttpProtocolIpv6(String httpProtocolIpv6)
Indicates whether the IPv6 endpoint for the instance metadata service is enabled or disabled.
httpProtocolIpv6
- Indicates whether the IPv6 endpoint for the instance metadata service is enabled or disabled.HttpProtocolIpv6
public InstanceMetadataOptions withHttpProtocolIpv6(HttpProtocolIpv6 httpProtocolIpv6)
Indicates whether the IPv6 endpoint for the instance metadata service is enabled or disabled.
httpProtocolIpv6
- Indicates whether the IPv6 endpoint for the instance metadata service is enabled or disabled.HttpProtocolIpv6
public String toString()
toString
in class Object
Object.toString()
public InstanceMetadataOptions clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.