public class RegisterInstanceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
RegisterInstance operation
.
Registers instances with a specified stack that were created outside of AWS OpsWorks.
NOTE:We do not recommend using this action to register instances. The complete registration operation has two primary steps, installing the AWS OpsWorks agent on the instance and registering the instance with the stack. RegisterInstance handles only the second step. You should instead use the AWS CLI register command, which performs the entire registration operation. For more information, see Registering an Instance with an AWS OpsWorks Stack.
Required Permissions : To use this action, an IAM user must have a Manage permissions level for the stack or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions .
NOOP
Constructor and Description |
---|
RegisterInstanceRequest() |
Modifier and Type | Method and Description |
---|---|
RegisterInstanceRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getHostname()
The instance's hostname.
|
InstanceIdentity |
getInstanceIdentity()
An InstanceIdentity object that contains the instance's identity.
|
String |
getPrivateIp()
The instance's private IP address.
|
String |
getPublicIp()
The instance's public IP address.
|
String |
getRsaPublicKey()
The instances public RSA key.
|
String |
getRsaPublicKeyFingerprint()
The instances public RSA key fingerprint.
|
String |
getStackId()
The ID of the stack that the instance is to be registered with.
|
int |
hashCode() |
void |
setHostname(String hostname)
The instance's hostname.
|
void |
setInstanceIdentity(InstanceIdentity instanceIdentity)
An InstanceIdentity object that contains the instance's identity.
|
void |
setPrivateIp(String privateIp)
The instance's private IP address.
|
void |
setPublicIp(String publicIp)
The instance's public IP address.
|
void |
setRsaPublicKey(String rsaPublicKey)
The instances public RSA key.
|
void |
setRsaPublicKeyFingerprint(String rsaPublicKeyFingerprint)
The instances public RSA key fingerprint.
|
void |
setStackId(String stackId)
The ID of the stack that the instance is to be registered with.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RegisterInstanceRequest |
withHostname(String hostname)
The instance's hostname.
|
RegisterInstanceRequest |
withInstanceIdentity(InstanceIdentity instanceIdentity)
An InstanceIdentity object that contains the instance's identity.
|
RegisterInstanceRequest |
withPrivateIp(String privateIp)
The instance's private IP address.
|
RegisterInstanceRequest |
withPublicIp(String publicIp)
The instance's public IP address.
|
RegisterInstanceRequest |
withRsaPublicKey(String rsaPublicKey)
The instances public RSA key.
|
RegisterInstanceRequest |
withRsaPublicKeyFingerprint(String rsaPublicKeyFingerprint)
The instances public RSA key fingerprint.
|
RegisterInstanceRequest |
withStackId(String stackId)
The ID of the stack that the instance is to be registered with.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getStackId()
public void setStackId(String stackId)
stackId
- The ID of the stack that the instance is to be registered with.public RegisterInstanceRequest withStackId(String stackId)
Returns a reference to this object so that method calls can be chained together.
stackId
- The ID of the stack that the instance is to be registered with.public String getHostname()
public void setHostname(String hostname)
hostname
- The instance's hostname.public RegisterInstanceRequest withHostname(String hostname)
Returns a reference to this object so that method calls can be chained together.
hostname
- The instance's hostname.public String getPublicIp()
public void setPublicIp(String publicIp)
publicIp
- The instance's public IP address.public RegisterInstanceRequest withPublicIp(String publicIp)
Returns a reference to this object so that method calls can be chained together.
publicIp
- The instance's public IP address.public String getPrivateIp()
public void setPrivateIp(String privateIp)
privateIp
- The instance's private IP address.public RegisterInstanceRequest withPrivateIp(String privateIp)
Returns a reference to this object so that method calls can be chained together.
privateIp
- The instance's private IP address.public String getRsaPublicKey()
public void setRsaPublicKey(String rsaPublicKey)
rsaPublicKey
- The instances public RSA key. This key is used to encrypt
communication between the instance and the service.public RegisterInstanceRequest withRsaPublicKey(String rsaPublicKey)
Returns a reference to this object so that method calls can be chained together.
rsaPublicKey
- The instances public RSA key. This key is used to encrypt
communication between the instance and the service.public String getRsaPublicKeyFingerprint()
public void setRsaPublicKeyFingerprint(String rsaPublicKeyFingerprint)
rsaPublicKeyFingerprint
- The instances public RSA key fingerprint.public RegisterInstanceRequest withRsaPublicKeyFingerprint(String rsaPublicKeyFingerprint)
Returns a reference to this object so that method calls can be chained together.
rsaPublicKeyFingerprint
- The instances public RSA key fingerprint.public InstanceIdentity getInstanceIdentity()
public void setInstanceIdentity(InstanceIdentity instanceIdentity)
instanceIdentity
- An InstanceIdentity object that contains the instance's identity.public RegisterInstanceRequest withInstanceIdentity(InstanceIdentity instanceIdentity)
Returns a reference to this object so that method calls can be chained together.
instanceIdentity
- An InstanceIdentity object that contains the instance's identity.public String toString()
toString
in class Object
Object.toString()
public RegisterInstanceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.