@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEc2LaunchTemplateDataMetadataOptionsDetails extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the metadata options for an Amazon EC2 instance.
Constructor and Description |
---|
AwsEc2LaunchTemplateDataMetadataOptionsDetails() |
Modifier and Type | Method and Description |
---|---|
AwsEc2LaunchTemplateDataMetadataOptionsDetails |
clone() |
boolean |
equals(Object obj) |
String |
getHttpEndpoint()
Enables or disables the HTTP metadata endpoint on your instances.
|
String |
getHttpProtocolIpv6()
Enables or disables the IPv6 endpoint for the instance metadata service.
|
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 |
getInstanceMetadataTags()
When set to
enabled , this parameter allows access to instance tags from the instance metadata. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setHttpEndpoint(String httpEndpoint)
Enables or disables the HTTP metadata endpoint on your instances.
|
void |
setHttpProtocolIpv6(String httpProtocolIpv6)
Enables or disables the IPv6 endpoint for the instance metadata service.
|
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 |
setInstanceMetadataTags(String instanceMetadataTags)
When set to
enabled , this parameter allows access to instance tags from the instance metadata. |
String |
toString()
Returns a string representation of this object.
|
AwsEc2LaunchTemplateDataMetadataOptionsDetails |
withHttpEndpoint(String httpEndpoint)
Enables or disables the HTTP metadata endpoint on your instances.
|
AwsEc2LaunchTemplateDataMetadataOptionsDetails |
withHttpProtocolIpv6(String httpProtocolIpv6)
Enables or disables the IPv6 endpoint for the instance metadata service.
|
AwsEc2LaunchTemplateDataMetadataOptionsDetails |
withHttpPutResponseHopLimit(Integer httpPutResponseHopLimit)
The desired HTTP PUT response hop limit for instance metadata requests.
|
AwsEc2LaunchTemplateDataMetadataOptionsDetails |
withHttpTokens(String httpTokens)
The state of token usage for your instance metadata requests.
|
AwsEc2LaunchTemplateDataMetadataOptionsDetails |
withInstanceMetadataTags(String instanceMetadataTags)
When set to
enabled , this parameter allows access to instance tags from the instance metadata. |
public AwsEc2LaunchTemplateDataMetadataOptionsDetails()
public void setHttpEndpoint(String httpEndpoint)
Enables or disables the HTTP metadata endpoint on your instances. If the parameter is not specified, the default state is enabled, and you won't be able to access your instance metadata.
httpEndpoint
- Enables or disables the HTTP metadata endpoint on your instances. If the parameter is not specified, the
default state is enabled, and you won't be able to access your instance metadata.public String getHttpEndpoint()
Enables or disables the HTTP metadata endpoint on your instances. If the parameter is not specified, the default state is enabled, and you won't be able to access your instance metadata.
public AwsEc2LaunchTemplateDataMetadataOptionsDetails withHttpEndpoint(String httpEndpoint)
Enables or disables the HTTP metadata endpoint on your instances. If the parameter is not specified, the default state is enabled, and you won't be able to access your instance metadata.
httpEndpoint
- Enables or disables the HTTP metadata endpoint on your instances. If the parameter is not specified, the
default state is enabled, and you won't be able to access your instance metadata.public void setHttpProtocolIpv6(String httpProtocolIpv6)
Enables or disables the IPv6 endpoint for the instance metadata service.
httpProtocolIpv6
- Enables or disables the IPv6 endpoint for the instance metadata service.public String getHttpProtocolIpv6()
Enables or disables the IPv6 endpoint for the instance metadata service.
public AwsEc2LaunchTemplateDataMetadataOptionsDetails withHttpProtocolIpv6(String httpProtocolIpv6)
Enables or disables the IPv6 endpoint for the instance metadata service.
httpProtocolIpv6
- Enables or disables the IPv6 endpoint for the instance metadata service.public void setHttpTokens(String httpTokens)
The state of token usage for your instance metadata requests.
httpTokens
- The state of token usage for your instance metadata requests.public String getHttpTokens()
The state of token usage for your instance metadata requests.
public AwsEc2LaunchTemplateDataMetadataOptionsDetails withHttpTokens(String httpTokens)
The state of token usage for your instance metadata requests.
httpTokens
- The state of token usage for your instance metadata requests.public void setHttpPutResponseHopLimit(Integer httpPutResponseHopLimit)
The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can travel.
httpPutResponseHopLimit
- The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further
instance metadata requests can travel.public Integer getHttpPutResponseHopLimit()
The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can travel.
public AwsEc2LaunchTemplateDataMetadataOptionsDetails withHttpPutResponseHopLimit(Integer httpPutResponseHopLimit)
The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can travel.
httpPutResponseHopLimit
- The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further
instance metadata requests can travel.public void setInstanceMetadataTags(String instanceMetadataTags)
When set to enabled
, this parameter allows access to instance tags from the instance metadata. When
set to disabled
, it turns off access to instance tags from the instance metadata. For more
information, see Work with
instance tags in instance metadata in the Amazon EC2 User Guide.
instanceMetadataTags
- When set to enabled
, this parameter allows access to instance tags from the instance
metadata. When set to disabled
, it turns off access to instance tags from the instance
metadata. For more information, see Work
with instance tags in instance metadata in the Amazon EC2 User Guide.public String getInstanceMetadataTags()
When set to enabled
, this parameter allows access to instance tags from the instance metadata. When
set to disabled
, it turns off access to instance tags from the instance metadata. For more
information, see Work with
instance tags in instance metadata in the Amazon EC2 User Guide.
enabled
, this parameter allows access to instance tags from the instance
metadata. When set to disabled
, it turns off access to instance tags from the instance
metadata. For more information, see Work
with instance tags in instance metadata in the Amazon EC2 User Guide.public AwsEc2LaunchTemplateDataMetadataOptionsDetails withInstanceMetadataTags(String instanceMetadataTags)
When set to enabled
, this parameter allows access to instance tags from the instance metadata. When
set to disabled
, it turns off access to instance tags from the instance metadata. For more
information, see Work with
instance tags in instance metadata in the Amazon EC2 User Guide.
instanceMetadataTags
- When set to enabled
, this parameter allows access to instance tags from the instance
metadata. When set to disabled
, it turns off access to instance tags from the instance
metadata. For more information, see Work
with instance tags in instance metadata in the Amazon EC2 User Guide.public String toString()
toString
in class Object
Object.toString()
public AwsEc2LaunchTemplateDataMetadataOptionsDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.