@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateLabelsPayload extends Object implements Serializable, Cloneable, StructuredPojo
An object representing a Kubernetes label
change for a managed node group.
Constructor and Description |
---|
UpdateLabelsPayload() |
Modifier and Type | Method and Description |
---|---|
UpdateLabelsPayload |
addAddOrUpdateLabelsEntry(String key,
String value)
Add a single AddOrUpdateLabels entry
|
UpdateLabelsPayload |
clearAddOrUpdateLabelsEntries()
Removes all the entries added into AddOrUpdateLabels.
|
UpdateLabelsPayload |
clone() |
boolean |
equals(Object obj) |
Map<String,String> |
getAddOrUpdateLabels()
The Kubernetes
labels to add or update. |
List<String> |
getRemoveLabels()
The Kubernetes
labels to remove. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAddOrUpdateLabels(Map<String,String> addOrUpdateLabels)
The Kubernetes
labels to add or update. |
void |
setRemoveLabels(Collection<String> removeLabels)
The Kubernetes
labels to remove. |
String |
toString()
Returns a string representation of this object.
|
UpdateLabelsPayload |
withAddOrUpdateLabels(Map<String,String> addOrUpdateLabels)
The Kubernetes
labels to add or update. |
UpdateLabelsPayload |
withRemoveLabels(Collection<String> removeLabels)
The Kubernetes
labels to remove. |
UpdateLabelsPayload |
withRemoveLabels(String... removeLabels)
The Kubernetes
labels to remove. |
public Map<String,String> getAddOrUpdateLabels()
The Kubernetes labels
to add or update.
labels
to add or update.public void setAddOrUpdateLabels(Map<String,String> addOrUpdateLabels)
The Kubernetes labels
to add or update.
addOrUpdateLabels
- The Kubernetes labels
to add or update.public UpdateLabelsPayload withAddOrUpdateLabels(Map<String,String> addOrUpdateLabels)
The Kubernetes labels
to add or update.
addOrUpdateLabels
- The Kubernetes labels
to add or update.public UpdateLabelsPayload addAddOrUpdateLabelsEntry(String key, String value)
public UpdateLabelsPayload clearAddOrUpdateLabelsEntries()
public List<String> getRemoveLabels()
The Kubernetes labels
to remove.
labels
to remove.public void setRemoveLabels(Collection<String> removeLabels)
The Kubernetes labels
to remove.
removeLabels
- The Kubernetes labels
to remove.public UpdateLabelsPayload withRemoveLabels(String... removeLabels)
The Kubernetes labels
to remove.
NOTE: This method appends the values to the existing list (if any). Use
setRemoveLabels(java.util.Collection)
or withRemoveLabels(java.util.Collection)
if you want to
override the existing values.
removeLabels
- The Kubernetes labels
to remove.public UpdateLabelsPayload withRemoveLabels(Collection<String> removeLabels)
The Kubernetes labels
to remove.
removeLabels
- The Kubernetes labels
to remove.public String toString()
toString
in class Object
Object.toString()
public UpdateLabelsPayload clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.