@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ShareAttributes extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the weights for the fair share identifiers for the fair share policy. Fair share identifiers that aren't
included have a default weight of 1.0
.
Constructor and Description |
---|
ShareAttributes() |
Modifier and Type | Method and Description |
---|---|
ShareAttributes |
clone() |
boolean |
equals(Object obj) |
String |
getShareIdentifier()
A fair share identifier or fair share identifier prefix.
|
Float |
getWeightFactor()
The weight factor for the fair share identifier.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setShareIdentifier(String shareIdentifier)
A fair share identifier or fair share identifier prefix.
|
void |
setWeightFactor(Float weightFactor)
The weight factor for the fair share identifier.
|
String |
toString()
Returns a string representation of this object.
|
ShareAttributes |
withShareIdentifier(String shareIdentifier)
A fair share identifier or fair share identifier prefix.
|
ShareAttributes |
withWeightFactor(Float weightFactor)
The weight factor for the fair share identifier.
|
public void setShareIdentifier(String shareIdentifier)
A fair share identifier or fair share identifier prefix. If the string ends with an asterisk (*), this entry
specifies the weight factor to use for fair share identifiers that start with that prefix. The list of fair share
identifiers in a fair share policy can't overlap. For example, you can't have one that specifies a
shareIdentifier
of UserA*
and another that specifies a shareIdentifier
of
UserA-1
.
There can be no more than 500 fair share identifiers active in a job queue.
The string is limited to 255 alphanumeric characters, and can be followed by an asterisk (*).
shareIdentifier
- A fair share identifier or fair share identifier prefix. If the string ends with an asterisk (*), this
entry specifies the weight factor to use for fair share identifiers that start with that prefix. The list
of fair share identifiers in a fair share policy can't overlap. For example, you can't have one that
specifies a shareIdentifier
of UserA*
and another that specifies a
shareIdentifier
of UserA-1
.
There can be no more than 500 fair share identifiers active in a job queue.
The string is limited to 255 alphanumeric characters, and can be followed by an asterisk (*).
public String getShareIdentifier()
A fair share identifier or fair share identifier prefix. If the string ends with an asterisk (*), this entry
specifies the weight factor to use for fair share identifiers that start with that prefix. The list of fair share
identifiers in a fair share policy can't overlap. For example, you can't have one that specifies a
shareIdentifier
of UserA*
and another that specifies a shareIdentifier
of
UserA-1
.
There can be no more than 500 fair share identifiers active in a job queue.
The string is limited to 255 alphanumeric characters, and can be followed by an asterisk (*).
shareIdentifier
of UserA*
and another that specifies a
shareIdentifier
of UserA-1
.
There can be no more than 500 fair share identifiers active in a job queue.
The string is limited to 255 alphanumeric characters, and can be followed by an asterisk (*).
public ShareAttributes withShareIdentifier(String shareIdentifier)
A fair share identifier or fair share identifier prefix. If the string ends with an asterisk (*), this entry
specifies the weight factor to use for fair share identifiers that start with that prefix. The list of fair share
identifiers in a fair share policy can't overlap. For example, you can't have one that specifies a
shareIdentifier
of UserA*
and another that specifies a shareIdentifier
of
UserA-1
.
There can be no more than 500 fair share identifiers active in a job queue.
The string is limited to 255 alphanumeric characters, and can be followed by an asterisk (*).
shareIdentifier
- A fair share identifier or fair share identifier prefix. If the string ends with an asterisk (*), this
entry specifies the weight factor to use for fair share identifiers that start with that prefix. The list
of fair share identifiers in a fair share policy can't overlap. For example, you can't have one that
specifies a shareIdentifier
of UserA*
and another that specifies a
shareIdentifier
of UserA-1
.
There can be no more than 500 fair share identifiers active in a job queue.
The string is limited to 255 alphanumeric characters, and can be followed by an asterisk (*).
public void setWeightFactor(Float weightFactor)
The weight factor for the fair share identifier. The default value is 1.0. A lower value has a higher priority for compute resources. For example, jobs that use a share identifier with a weight factor of 0.125 (1/8) get 8 times the compute resources of jobs that use a share identifier with a weight factor of 1.
The smallest supported value is 0.0001, and the largest supported value is 999.9999.
weightFactor
- The weight factor for the fair share identifier. The default value is 1.0. A lower value has a higher
priority for compute resources. For example, jobs that use a share identifier with a weight factor of
0.125 (1/8) get 8 times the compute resources of jobs that use a share identifier with a weight factor of
1.
The smallest supported value is 0.0001, and the largest supported value is 999.9999.
public Float getWeightFactor()
The weight factor for the fair share identifier. The default value is 1.0. A lower value has a higher priority for compute resources. For example, jobs that use a share identifier with a weight factor of 0.125 (1/8) get 8 times the compute resources of jobs that use a share identifier with a weight factor of 1.
The smallest supported value is 0.0001, and the largest supported value is 999.9999.
The smallest supported value is 0.0001, and the largest supported value is 999.9999.
public ShareAttributes withWeightFactor(Float weightFactor)
The weight factor for the fair share identifier. The default value is 1.0. A lower value has a higher priority for compute resources. For example, jobs that use a share identifier with a weight factor of 0.125 (1/8) get 8 times the compute resources of jobs that use a share identifier with a weight factor of 1.
The smallest supported value is 0.0001, and the largest supported value is 999.9999.
weightFactor
- The weight factor for the fair share identifier. The default value is 1.0. A lower value has a higher
priority for compute resources. For example, jobs that use a share identifier with a weight factor of
0.125 (1/8) get 8 times the compute resources of jobs that use a share identifier with a weight factor of
1.
The smallest supported value is 0.0001, and the largest supported value is 999.9999.
public String toString()
toString
in class Object
Object.toString()
public ShareAttributes clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.