@Override
    public GetInstanceMetadataDefaultsResult getInstanceMetadataDefaults(GetInstanceMetadataDefaultsRequest request) {
        request = beforeClientExecution(request);
        return executeGetInstanceMetadataDefaults(request);
    }
<p>
Gets the default instance metadata service (IMDS) settings that are set at the account level in the specified
Amazon Web Services&#x2028; Region.
</p>
<p>
For more information, see <a href=
"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-options.html#instance-metadata-options-order-of-precedence"
>Order of precedence for instance metadata options</a> in the <i>Amazon EC2 User Guide</i>.
</p>

@param getInstanceMetadataDefaultsRequest
@return Result of the GetInstanceMetadataDefaults operation returned by the service.
@sample AmazonEC2.GetInstanceMetadataDefaults
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetInstanceMetadataDefaults"
     target="_top">AWS API Documentation</a>
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2Client.java