@Generated(value="software.amazon.awssdk:codegen") public final class CreateServiceLinkedRoleRequest extends IamRequest implements ToCopyableBuilder<CreateServiceLinkedRoleRequest.Builder,CreateServiceLinkedRoleRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
CreateServiceLinkedRoleRequest.Builder |
Modifier and Type | Method and Description |
---|---|
String |
awsServiceName()
The service principal for the AWS service to which this role is attached.
|
static CreateServiceLinkedRoleRequest.Builder |
builder() |
String |
customSuffix()
|
String |
description()
The description of the role.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateServiceLinkedRoleRequest.Builder> |
serializableBuilderClass() |
CreateServiceLinkedRoleRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
overrideConfiguration
copy
public String awsServiceName()
The service principal for the AWS service to which this role is attached. You use a string similar to a URL but
without the http:// in front. For example: elasticbeanstalk.amazonaws.com
.
Service principals are unique and case-sensitive. To find the exact service principal for your service-linked role, see AWS Services That Work with IAM in the IAM User Guide and look for the services that have Yes in the Service-Linked Role column. Choose the Yes link to view the service-linked role documentation for that service.
elasticbeanstalk.amazonaws.com
.
Service principals are unique and case-sensitive. To find the exact service principal for your service-linked role, see AWS Services That Work with IAM in the IAM User Guide and look for the services that have Yes in the Service-Linked Role column. Choose the Yes link to view the service-linked role documentation for that service.
public String description()
The description of the role.
public String customSuffix()
A string that you provide, which is combined with the service-provided prefix to form the complete role name. If
you make multiple requests for the same service, then you must supply a different CustomSuffix
for
each request. Otherwise the request fails with a duplicate role name error. For example, you could add
-1
or -debug
to the suffix.
Some services do not support the CustomSuffix
parameter. If you provide an optional suffix and the
operation fails, try the operation again without the suffix.
A string that you provide, which is combined with the service-provided prefix to form the complete role
name. If you make multiple requests for the same service, then you must supply a different
CustomSuffix
for each request. Otherwise the request fails with a duplicate role name error.
For example, you could add -1
or -debug
to the suffix.
Some services do not support the CustomSuffix
parameter. If you provide an optional suffix
and the operation fails, try the operation again without the suffix.
public CreateServiceLinkedRoleRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateServiceLinkedRoleRequest.Builder,CreateServiceLinkedRoleRequest>
toBuilder
in class IamRequest
public static CreateServiceLinkedRoleRequest.Builder builder()
public static Class<? extends CreateServiceLinkedRoleRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.