public class Association extends Object implements Serializable, Cloneable
Describes an association of a configuration document and an instance.
| Constructor and Description |
|---|
Association() |
| Modifier and Type | Method and Description |
|---|---|
Association |
clone() |
boolean |
equals(Object obj) |
String |
getInstanceId()
The ID of the instance.
|
String |
getName()
The name of the configuration document.
|
int |
hashCode() |
void |
setInstanceId(String instanceId)
The ID of the instance.
|
void |
setName(String name)
The name of the configuration document.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Association |
withInstanceId(String instanceId)
The ID of the instance.
|
Association |
withName(String name)
The name of the configuration document.
|
public String getName()
Constraints:
Length: 3 - 64
Pattern: ^[a-zA-Z0-9_\-.]{3,64}$
public void setName(String name)
Constraints:
Length: 3 - 64
Pattern: ^[a-zA-Z0-9_\-.]{3,64}$
name - The name of the configuration document.public Association withName(String name)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 3 - 64
Pattern: ^[a-zA-Z0-9_\-.]{3,64}$
name - The name of the configuration document.public String getInstanceId()
Constraints:
Length: 10 - 10
Pattern: ^(?=.{10}$)(i-(\w){8})
public void setInstanceId(String instanceId)
Constraints:
Length: 10 - 10
Pattern: ^(?=.{10}$)(i-(\w){8})
instanceId - The ID of the instance.public Association withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 10 - 10
Pattern: ^(?=.{10}$)(i-(\w){8})
instanceId - The ID of the instance.public String toString()
toString in class ObjectObject.toString()public Association clone()
Copyright © 2015. All rights reserved.