public class AssociationDescription extends Object implements Serializable, Cloneable
Describes an association.
Constructor and Description |
---|
AssociationDescription() |
Modifier and Type | Method and Description |
---|---|
AssociationDescription |
clone() |
boolean |
equals(Object obj) |
Date |
getDate()
The date when the association was made.
|
String |
getInstanceId()
The ID of the instance.
|
String |
getName()
The name of the configuration document.
|
AssociationStatus |
getStatus()
The association status.
|
int |
hashCode() |
void |
setDate(Date date)
The date when the association was made.
|
void |
setInstanceId(String instanceId)
The ID of the instance.
|
void |
setName(String name)
The name of the configuration document.
|
void |
setStatus(AssociationStatus status)
The association status.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AssociationDescription |
withDate(Date date)
The date when the association was made.
|
AssociationDescription |
withInstanceId(String instanceId)
The ID of the instance.
|
AssociationDescription |
withName(String name)
The name of the configuration document.
|
AssociationDescription |
withStatus(AssociationStatus status)
The association status.
|
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 AssociationDescription 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 AssociationDescription 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 Date getDate()
public void setDate(Date date)
date
- The date when the association was made.public AssociationDescription withDate(Date date)
Returns a reference to this object so that method calls can be chained together.
date
- The date when the association was made.public AssociationStatus getStatus()
public void setStatus(AssociationStatus status)
status
- The association status.public AssociationDescription withStatus(AssociationStatus status)
Returns a reference to this object so that method calls can be chained together.
status
- The association status.public String toString()
toString
in class Object
Object.toString()
public AssociationDescription clone()
Copyright © 2015. All rights reserved.