public class CreatePlacementGroupRequest extends AmazonWebServiceRequest implements java.io.Serializable
CreatePlacementGroup operation.
Creates a PlacementGroup into which multiple Amazon EC2 instances can be launched. Users must give the group a name unique within the scope of the user account.
| コンストラクタと説明 |
|---|
CreatePlacementGroupRequest()
Default constructor for a new CreatePlacementGroupRequest object.
|
CreatePlacementGroupRequest(java.lang.String groupName,
PlacementStrategy strategy)
Constructs a new CreatePlacementGroupRequest object.
|
CreatePlacementGroupRequest(java.lang.String groupName,
java.lang.String strategy)
Constructs a new CreatePlacementGroupRequest object.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getGroupName()
The name of the
PlacementGroup. |
java.lang.String |
getStrategy()
The
PlacementGroup strategy. |
int |
hashCode() |
void |
setGroupName(java.lang.String groupName)
The name of the
PlacementGroup. |
void |
setStrategy(PlacementStrategy strategy)
The
PlacementGroup strategy. |
void |
setStrategy(java.lang.String strategy)
The
PlacementGroup strategy. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreatePlacementGroupRequest |
withGroupName(java.lang.String groupName)
The name of the
PlacementGroup. |
CreatePlacementGroupRequest |
withStrategy(PlacementStrategy strategy)
The
PlacementGroup strategy. |
CreatePlacementGroupRequest |
withStrategy(java.lang.String strategy)
The
PlacementGroup strategy. |
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic CreatePlacementGroupRequest()
public CreatePlacementGroupRequest(java.lang.String groupName,
java.lang.String strategy)
groupName - The name of the PlacementGroup.strategy - The PlacementGroup strategy.public CreatePlacementGroupRequest(java.lang.String groupName,
PlacementStrategy strategy)
groupName - The name of the PlacementGroup.strategy - The PlacementGroup strategy.public java.lang.String getGroupName()
PlacementGroup.PlacementGroup.public void setGroupName(java.lang.String groupName)
PlacementGroup.groupName - The name of the PlacementGroup.public CreatePlacementGroupRequest withGroupName(java.lang.String groupName)
PlacementGroup.
Returns a reference to this object so that method calls can be chained together.
groupName - The name of the PlacementGroup.public java.lang.String getStrategy()
PlacementGroup strategy.
Constraints:
Allowed Values: cluster
PlacementGroup strategy.PlacementStrategypublic void setStrategy(java.lang.String strategy)
PlacementGroup strategy.
Constraints:
Allowed Values: cluster
strategy - The PlacementGroup strategy.PlacementStrategypublic CreatePlacementGroupRequest withStrategy(java.lang.String strategy)
PlacementGroup strategy.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: cluster
strategy - The PlacementGroup strategy.PlacementStrategypublic void setStrategy(PlacementStrategy strategy)
PlacementGroup strategy.
Constraints:
Allowed Values: cluster
strategy - The PlacementGroup strategy.PlacementStrategypublic CreatePlacementGroupRequest withStrategy(PlacementStrategy strategy)
PlacementGroup strategy.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: cluster
strategy - The PlacementGroup strategy.PlacementStrategypublic java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object