@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FargateProfileSelector extends Object implements Serializable, Cloneable, StructuredPojo
An object representing an Fargate profile selector.
Constructor and Description |
---|
FargateProfileSelector() |
Modifier and Type | Method and Description |
---|---|
FargateProfileSelector |
addLabelsEntry(String key,
String value)
Add a single Labels entry
|
FargateProfileSelector |
clearLabelsEntries()
Removes all the entries added into Labels.
|
FargateProfileSelector |
clone() |
boolean |
equals(Object obj) |
Map<String,String> |
getLabels()
The Kubernetes labels that the selector should match.
|
String |
getNamespace()
The Kubernetes namespace that the selector should match.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setLabels(Map<String,String> labels)
The Kubernetes labels that the selector should match.
|
void |
setNamespace(String namespace)
The Kubernetes namespace that the selector should match.
|
String |
toString()
Returns a string representation of this object.
|
FargateProfileSelector |
withLabels(Map<String,String> labels)
The Kubernetes labels that the selector should match.
|
FargateProfileSelector |
withNamespace(String namespace)
The Kubernetes namespace that the selector should match.
|
public void setNamespace(String namespace)
The Kubernetes namespace that the selector should match.
namespace
- The Kubernetes namespace that the selector should match.public String getNamespace()
The Kubernetes namespace that the selector should match.
public FargateProfileSelector withNamespace(String namespace)
The Kubernetes namespace that the selector should match.
namespace
- The Kubernetes namespace that the selector should match.public Map<String,String> getLabels()
The Kubernetes labels that the selector should match. A pod must contain all of the labels that are specified in the selector for it to be considered a match.
public void setLabels(Map<String,String> labels)
The Kubernetes labels that the selector should match. A pod must contain all of the labels that are specified in the selector for it to be considered a match.
labels
- The Kubernetes labels that the selector should match. A pod must contain all of the labels that are
specified in the selector for it to be considered a match.public FargateProfileSelector withLabels(Map<String,String> labels)
The Kubernetes labels that the selector should match. A pod must contain all of the labels that are specified in the selector for it to be considered a match.
labels
- The Kubernetes labels that the selector should match. A pod must contain all of the labels that are
specified in the selector for it to be considered a match.public FargateProfileSelector addLabelsEntry(String key, String value)
public FargateProfileSelector clearLabelsEntries()
public String toString()
toString
in class Object
Object.toString()
public FargateProfileSelector clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.