public class EC2MetadataServiceMock extends Object
| Constructor and Description | 
|---|
| EC2MetadataServiceMock(boolean tokenEnabled) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | setAvailableSecurityCredentials(String securityCredentialNames)Accepts a newline delimited list of security credential names that the
 mock metadata service should advertise as available. | 
| void | setResponseContent(String responseContent)Sets the content that should be sent back as the response from this mock server. | 
| void | start() | 
| void | stop() | 
public void setResponseContent(String responseContent)
public void setAvailableSecurityCredentials(String securityCredentialNames)
securityCredentialNames - A newline delimited list of security credentials that the
            metadata service will advertise as available.public void start()
           throws IOException
IOExceptionpublic void stop()
Copyright © 2020. All rights reserved.