public class EnvironmentCreator extends Creator<Environment>
Constructor and Description |
---|
EnvironmentCreator(String pathServiceSid,
String uniqueName)
Construct a new EnvironmentCreator.
|
Modifier and Type | Method and Description |
---|---|
Environment |
create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
|
EnvironmentCreator |
setDomainSuffix(String domainSuffix)
A URL-friendly name that represents the environment and forms part of the
domain name.
|
create, createAsync, createAsync
public EnvironmentCreator(String pathServiceSid, String uniqueName)
pathServiceSid
- The SID of the Service to create the Environment
resource underuniqueName
- A user-defined string that uniquely identifies the
Environment resourcepublic EnvironmentCreator setDomainSuffix(String domainSuffix)
domainSuffix
- A URL-friendly name that represents the environmentpublic Environment create(TwilioRestClient client)
create
in class Creator<Environment>
client
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.