Class JobParameter
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<JobParameter.Builder,JobParameter>
The details of job parameters.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringbool()A boolean value represented as a string.boolList()A list of boolean values, each represented as a string.static JobParameter.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.A list of double precision IEEE-754 floating point numbers, each represented as a string.final StringA double precision IEEE-754 floating point number represented as a string.static JobParameterCreate an instance of this class withbool()initialized to the given value.static JobParameterfromBoolList(List<String> boolList) Create an instance of this class withboolList()initialized to the given value.static JobParameterfromFloatList(List<String> floatList) Create an instance of this class withfloatList()initialized to the given value.static JobParameterfromFloatValue(String floatValue) Create an instance of this class withfloatValue()initialized to the given value.static JobParameterfromIntList(List<String> intList) Create an instance of this class withintList()initialized to the given value.static JobParameterfromIntListList(List<List<String>> intListList) Create an instance of this class withintListList()initialized to the given value.static JobParameterfromIntValue(String intValue) Create an instance of this class withintValue()initialized to the given value.static JobParameterCreate an instance of this class withpath()initialized to the given value.static JobParameterfromPathList(List<String> pathList) Create an instance of this class withpathList()initialized to the given value.static JobParameterfromRangeExpr(String rangeExpr) Create an instance of this class withrangeExpr()initialized to the given value.static JobParameterfromString(String string) Create an instance of this class withstring()initialized to the given value.static JobParameterfromStringList(List<String> stringList) Create an instance of this class withstringList()initialized to the given value.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the BoolList property.final booleanFor responses, this returns true if the service returned a value for the FloatList property.final inthashCode()final booleanFor responses, this returns true if the service returned a value for the IntList property.final booleanFor responses, this returns true if the service returned a value for the IntListList property.final booleanFor responses, this returns true if the service returned a value for the PathList property.final booleanFor responses, this returns true if the service returned a value for the StringList property.intList()A list of signed integers, each represented as a string.A list of lists of signed integers, each represented as a string.final StringintValue()A signed integer represented as a string.final Stringpath()A file system path represented as a string.pathList()A list of file system paths, each represented as a string.final StringAn Open Job Description range expression represented as a string, such as1-10:2.static Class<? extends JobParameter.Builder> final Stringstring()A UTF-8 string.A list of UTF-8 strings.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.type()Retrieve an enum value representing which member of this object is populated.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
intValue
A signed integer represented as a string.
- Returns:
- A signed integer represented as a string.
-
floatValue
A double precision IEEE-754 floating point number represented as a string.
- Returns:
- A double precision IEEE-754 floating point number represented as a string.
-
string
-
path
A file system path represented as a string.
- Returns:
- A file system path represented as a string.
-
bool
A boolean value represented as a string. Accepted values are
true,false,yes,no,on,off,1, and0, case-insensitive.- Returns:
- A boolean value represented as a string. Accepted values are
true,false,yes,no,on,off,1, and0, case-insensitive.
-
rangeExpr
An Open Job Description range expression represented as a string, such as
1-10:2.- Returns:
- An Open Job Description range expression represented as a string, such as
1-10:2.
-
hasStringList
public final boolean hasStringList()For responses, this returns true if the service returned a value for the StringList property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
stringList
A list of UTF-8 strings.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasStringList()method.- Returns:
- A list of UTF-8 strings.
-
hasPathList
public final boolean hasPathList()For responses, this returns true if the service returned a value for the PathList property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
pathList
A list of file system paths, each represented as a string.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasPathList()method.- Returns:
- A list of file system paths, each represented as a string.
-
hasIntList
public final boolean hasIntList()For responses, this returns true if the service returned a value for the IntList property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
intList
A list of signed integers, each represented as a string.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasIntList()method.- Returns:
- A list of signed integers, each represented as a string.
-
hasFloatList
public final boolean hasFloatList()For responses, this returns true if the service returned a value for the FloatList property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
floatList
A list of double precision IEEE-754 floating point numbers, each represented as a string.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasFloatList()method.- Returns:
- A list of double precision IEEE-754 floating point numbers, each represented as a string.
-
hasBoolList
public final boolean hasBoolList()For responses, this returns true if the service returned a value for the BoolList property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
boolList
A list of boolean values, each represented as a string.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasBoolList()method.- Returns:
- A list of boolean values, each represented as a string.
-
hasIntListList
public final boolean hasIntListList()For responses, this returns true if the service returned a value for the IntListList property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
intListList
A list of lists of signed integers, each represented as a string.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasIntListList()method.- Returns:
- A list of lists of signed integers, each represented as a string.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<JobParameter.Builder,JobParameter> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
fromIntValue
Create an instance of this class withintValue()initialized to the given value.A signed integer represented as a string.
- Parameters:
intValue- A signed integer represented as a string.
-
fromFloatValue
Create an instance of this class withfloatValue()initialized to the given value.A double precision IEEE-754 floating point number represented as a string.
- Parameters:
floatValue- A double precision IEEE-754 floating point number represented as a string.
-
fromString
Create an instance of this class withstring()initialized to the given value.A UTF-8 string.
- Parameters:
string- A UTF-8 string.
-
fromPath
Create an instance of this class withpath()initialized to the given value.A file system path represented as a string.
- Parameters:
path- A file system path represented as a string.
-
fromBool
Create an instance of this class withbool()initialized to the given value.A boolean value represented as a string. Accepted values are
true,false,yes,no,on,off,1, and0, case-insensitive.- Parameters:
bool- A boolean value represented as a string. Accepted values aretrue,false,yes,no,on,off,1, and0, case-insensitive.
-
fromRangeExpr
Create an instance of this class withrangeExpr()initialized to the given value.An Open Job Description range expression represented as a string, such as
1-10:2.- Parameters:
rangeExpr- An Open Job Description range expression represented as a string, such as1-10:2.
-
fromStringList
Create an instance of this class withstringList()initialized to the given value.A list of UTF-8 strings.
- Parameters:
stringList- A list of UTF-8 strings.
-
fromPathList
Create an instance of this class withpathList()initialized to the given value.A list of file system paths, each represented as a string.
- Parameters:
pathList- A list of file system paths, each represented as a string.
-
fromIntList
Create an instance of this class withintList()initialized to the given value.A list of signed integers, each represented as a string.
- Parameters:
intList- A list of signed integers, each represented as a string.
-
fromFloatList
Create an instance of this class withfloatList()initialized to the given value.A list of double precision IEEE-754 floating point numbers, each represented as a string.
- Parameters:
floatList- A list of double precision IEEE-754 floating point numbers, each represented as a string.
-
fromBoolList
Create an instance of this class withboolList()initialized to the given value.A list of boolean values, each represented as a string.
- Parameters:
boolList- A list of boolean values, each represented as a string.
-
fromIntListList
Create an instance of this class withintListList()initialized to the given value.A list of lists of signed integers, each represented as a string.
- Parameters:
intListList- A list of lists of signed integers, each represented as a string.
-
type
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beJobParameter.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beJobParameter.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set. -
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-