@Generated(value="software.amazon.awssdk:codegen") public final class CreateBranchRequest extends AmplifyRequest implements ToCopyableBuilder<CreateBranchRequest.Builder,CreateBranchRequest>
Request structure for a branch create request.
Modifier and Type | Class and Description |
---|---|
static interface |
CreateBranchRequest.Builder |
Modifier and Type | Method and Description |
---|---|
String |
appId()
Unique Id for an Amplify App.
|
String |
basicAuthCredentials()
Basic Authorization credentials for the branch.
|
String |
branchName()
Name for the branch.
|
static CreateBranchRequest.Builder |
builder() |
String |
buildSpec()
BuildSpec for the branch.
|
String |
description()
Description for the branch.
|
Boolean |
enableAutoBuild()
Enables auto building for the branch.
|
Boolean |
enableBasicAuth()
Enables Basic Auth for the branch.
|
Boolean |
enableNotification()
Enables notifications for the branch.
|
Map<String,String> |
environmentVariables()
Environment Variables for the branch.
|
boolean |
equals(Object obj) |
String |
framework()
Framework for the branch.
|
<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 CreateBranchRequest.Builder> |
serializableBuilderClass() |
Stage |
stage()
Stage for the branch.
|
String |
stageAsString()
Stage for the branch.
|
Map<String,String> |
tags()
Tag for the branch.
|
CreateBranchRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
ttl()
The content TTL for the website in seconds.
|
overrideConfiguration
copy
public String appId()
Unique Id for an Amplify App.
public String branchName()
Name for the branch.
public String description()
Description for the branch.
public Stage stage()
Stage for the branch.
If the service returns an enum value that is not available in the current SDK version, stage
will return
Stage.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
stageAsString()
.
Stage
public String stageAsString()
Stage for the branch.
If the service returns an enum value that is not available in the current SDK version, stage
will return
Stage.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
stageAsString()
.
Stage
public String framework()
Framework for the branch.
public Boolean enableNotification()
Enables notifications for the branch.
public Boolean enableAutoBuild()
Enables auto building for the branch.
public Map<String,String> environmentVariables()
Environment Variables for the branch.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String basicAuthCredentials()
Basic Authorization credentials for the branch.
public Boolean enableBasicAuth()
Enables Basic Auth for the branch.
public Map<String,String> tags()
Tag for the branch.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String buildSpec()
BuildSpec for the branch.
public String ttl()
The content TTL for the website in seconds.
public CreateBranchRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateBranchRequest.Builder,CreateBranchRequest>
toBuilder
in class AmplifyRequest
public static CreateBranchRequest.Builder builder()
public static Class<? extends CreateBranchRequest.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.