Class Workforce
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<Workforce.Builder,
Workforce>
A single private workforce, which is automatically created when you create your first private work team. You can create one private work force in each Amazon Web Services Region. By default, any workforce-related API operation used in a specific region will apply to the workforce created in that region. To learn how to create a private workforce, see Create a Private Workforce.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Workforce.Builder
builder()
final CognitoConfig
The configuration of an Amazon Cognito workforce.final Instant
The date that the workforce is created.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final String
The reason your workforce failed.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final Instant
The most recent date that UpdateWorkforce was used to successfully add one or more IP address ranges (CIDRs) to a private workforce's allow list.final OidcConfigForResponse
The configuration of an OIDC Identity Provider (IdP) private workforce.static Class
<? extends Workforce.Builder> final SourceIpConfig
A list of one to ten IP address ranges (CIDRs) to be added to the workforce allow list.final WorkforceStatus
status()
The status of your workforce.final String
The status of your workforce.final String
The subdomain for your OIDC Identity Provider.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final String
The Amazon Resource Name (ARN) of the private workforce.final String
The name of the private workforce.The configuration of a VPC workforce.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
workforceName
The name of the private workforce.
- Returns:
- The name of the private workforce.
-
workforceArn
The Amazon Resource Name (ARN) of the private workforce.
- Returns:
- The Amazon Resource Name (ARN) of the private workforce.
-
lastUpdatedDate
The most recent date that UpdateWorkforce was used to successfully add one or more IP address ranges (CIDRs) to a private workforce's allow list.
- Returns:
- The most recent date that UpdateWorkforce was used to successfully add one or more IP address ranges (CIDRs) to a private workforce's allow list.
-
sourceIpConfig
A list of one to ten IP address ranges (CIDRs) to be added to the workforce allow list. By default, a workforce isn't restricted to specific IP addresses.
- Returns:
- A list of one to ten IP address ranges (CIDRs) to be added to the workforce allow list. By default, a workforce isn't restricted to specific IP addresses.
-
subDomain
The subdomain for your OIDC Identity Provider.
- Returns:
- The subdomain for your OIDC Identity Provider.
-
cognitoConfig
The configuration of an Amazon Cognito workforce. A single Cognito workforce is created using and corresponds to a single Amazon Cognito user pool.
- Returns:
- The configuration of an Amazon Cognito workforce. A single Cognito workforce is created using and corresponds to a single Amazon Cognito user pool.
-
oidcConfig
The configuration of an OIDC Identity Provider (IdP) private workforce.
- Returns:
- The configuration of an OIDC Identity Provider (IdP) private workforce.
-
createDate
The date that the workforce is created.
- Returns:
- The date that the workforce is created.
-
workforceVpcConfig
The configuration of a VPC workforce.
- Returns:
- The configuration of a VPC workforce.
-
status
The status of your workforce.
If the service returns an enum value that is not available in the current SDK version,
status
will returnWorkforceStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- The status of your workforce.
- See Also:
-
statusAsString
The status of your workforce.
If the service returns an enum value that is not available in the current SDK version,
status
will returnWorkforceStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- The status of your workforce.
- See Also:
-
failureReason
The reason your workforce failed.
- Returns:
- The reason your workforce failed.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<Workforce.Builder,
Workforce> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in 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
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-