Skip to content

Commit

Permalink
kinesisvideowebrtcstorage models updates (#3277)
Browse files Browse the repository at this point in the history
  • Loading branch information
div5yesh authored May 3, 2023
1 parent 3b55353 commit cf94e1d
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 49 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* <p>
* </p>
**/
public interface AmazonKinesisVideoWebRTCStorage {
public interface AWSKinesisVideoWebRTCStorage {

/**
* Overrides the default endpoint for this client
Expand Down Expand Up @@ -60,7 +60,7 @@ public interface AmazonKinesisVideoWebRTCStorage {

/**
* An alternative to
* {@link AmazonKinesisVideoWebRTCStorage#setEndpoint(String)}, sets the
* {@link AWSKinesisVideoWebRTCStorage#setEndpoint(String)}, sets the
* regional endpoint for this client's service calls. Callers can use this
* method to control which AWS region they want to work with.
* <p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
* <p>
* </p>
*/
public class AmazonKinesisVideoWebRTCStorageClient extends AmazonWebServiceClient implements
AmazonKinesisVideoWebRTCStorage {
public class AWSKinesisVideoWebRTCStorageClient extends AmazonWebServiceClient implements
AWSKinesisVideoWebRTCStorage {
/** Provider for AWS credentials. */
private AWSCredentialsProvider awsCredentialsProvider;

Expand All @@ -51,8 +51,8 @@ public class AmazonKinesisVideoWebRTCStorageClient extends AmazonWebServiceClien

/**
* Constructs a new client to invoke service methods on
* AmazonKinesisVideoWebRTCStorage. A credentials provider chain will be
* used that searches for credentials in this order:
* AWSKinesisVideoWebRTCStorage. A credentials provider chain will be used
* that searches for credentials in this order:
* <ul>
* <li>Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY</li>
* <li>Java System Properties - aws.accessKeyId and aws.secretKey</li>
Expand All @@ -66,14 +66,14 @@ public class AmazonKinesisVideoWebRTCStorageClient extends AmazonWebServiceClien
* @see DefaultAWSCredentialsProviderChain
*/
@Deprecated
public AmazonKinesisVideoWebRTCStorageClient() {
public AWSKinesisVideoWebRTCStorageClient() {
this(new DefaultAWSCredentialsProviderChain(), new ClientConfiguration());
}

/**
* Constructs a new client to invoke service methods on
* AmazonKinesisVideoWebRTCStorage. A credentials provider chain will be
* used that searches for credentials in this order:
* AWSKinesisVideoWebRTCStorage. A credentials provider chain will be used
* that searches for credentials in this order:
* <ul>
* <li>Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY</li>
* <li>Java System Properties - aws.accessKeyId and aws.secretKey</li>
Expand All @@ -85,19 +85,18 @@ public AmazonKinesisVideoWebRTCStorageClient() {
* will not return until the service call completes.
*
* @param clientConfiguration The client configuration options controlling
* how this client connects to AmazonKinesisVideoWebRTCStorage
* (ex: proxy settings, retry counts, etc.).
* how this client connects to AWSKinesisVideoWebRTCStorage (ex:
* proxy settings, retry counts, etc.).
* @see DefaultAWSCredentialsProviderChain
*/
@Deprecated
public AmazonKinesisVideoWebRTCStorageClient(ClientConfiguration clientConfiguration) {
public AWSKinesisVideoWebRTCStorageClient(ClientConfiguration clientConfiguration) {
this(new DefaultAWSCredentialsProviderChain(), clientConfiguration);
}

/**
* Constructs a new client to invoke service methods on
* AmazonKinesisVideoWebRTCStorage using the specified AWS account
* credentials.
* AWSKinesisVideoWebRTCStorage using the specified AWS account credentials.
* <p>
* The client requests are authenticated using the {@link AWSCredentials}
* provided in this constructor. Static AWSCredentials can be passed for
Expand All @@ -111,7 +110,7 @@ public AmazonKinesisVideoWebRTCStorageClient(ClientConfiguration clientConfigura
* AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback&lt;UserStateDetails&gt;() {
* &#064;Override
* public void onResult(final UserStateDetails details) {
* AmazonKinesisVideoWebRTCStorageClient client = new AmazonKinesisVideoWebRTCStorageClient(
* AWSKinesisVideoWebRTCStorageClient client = new AWSKinesisVideoWebRTCStorageClient(
* AWSMobileClient.getInstance());
* }
*
Expand All @@ -128,14 +127,14 @@ public AmazonKinesisVideoWebRTCStorageClient(ClientConfiguration clientConfigura
* @param awsCredentials The AWS credentials (access key ID and secret key)
* to use when authenticating with AWS services.
*/
public AmazonKinesisVideoWebRTCStorageClient(AWSCredentials awsCredentials) {
public AWSKinesisVideoWebRTCStorageClient(AWSCredentials awsCredentials) {
this(awsCredentials, new ClientConfiguration());
}

/**
* Constructs a new client to invoke service methods on
* AmazonKinesisVideoWebRTCStorage using the specified AWS account
* credentials and client configuration options.
* AWSKinesisVideoWebRTCStorage using the specified AWS account credentials
* and client configuration options.
* <p>
* The client requests are authenticated using the {@link AWSCredentials}
* provided in this constructor. Static AWSCredentials can be passed for
Expand All @@ -149,7 +148,7 @@ public AmazonKinesisVideoWebRTCStorageClient(AWSCredentials awsCredentials) {
* AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback&lt;UserStateDetails&gt;() {
* &#064;Override
* public void onResult(final UserStateDetails details) {
* AmazonKinesisVideoWebRTCStorageClient client = new AmazonKinesisVideoWebRTCStorageClient(
* AWSKinesisVideoWebRTCStorageClient client = new AWSKinesisVideoWebRTCStorageClient(
* AWSMobileClient.getInstance());
* }
*
Expand All @@ -166,18 +165,18 @@ public AmazonKinesisVideoWebRTCStorageClient(AWSCredentials awsCredentials) {
* @param awsCredentials The AWS credentials (access key ID and secret key)
* to use when authenticating with AWS services.
* @param clientConfiguration The client configuration options controlling
* how this client connects to AmazonKinesisVideoWebRTCStorage
* (ex: proxy settings, retry counts, etc.).
* how this client connects to AWSKinesisVideoWebRTCStorage (ex:
* proxy settings, retry counts, etc.).
*/
public AmazonKinesisVideoWebRTCStorageClient(AWSCredentials awsCredentials,
public AWSKinesisVideoWebRTCStorageClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration) {
this(new StaticCredentialsProvider(awsCredentials), clientConfiguration);
}

/**
* Constructs a new client to invoke service methods on
* AmazonKinesisVideoWebRTCStorage using the specified AWS account
* credentials provider.
* AWSKinesisVideoWebRTCStorage using the specified AWS account credentials
* provider.
* <p>
* The client requests are authenticated using the {@link AWSCredentials}
* provided by the {@link AWSCredentialsProvider}. Static AWSCredentials can
Expand All @@ -191,7 +190,7 @@ public AmazonKinesisVideoWebRTCStorageClient(AWSCredentials awsCredentials,
* AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback&lt;UserStateDetails&gt;() {
* &#064;Override
* public void onResult(final UserStateDetails details) {
* AmazonKinesisVideoWebRTCStorageClient client = new AmazonKinesisVideoWebRTCStorageClient(
* AWSKinesisVideoWebRTCStorageClient client = new AWSKinesisVideoWebRTCStorageClient(
* AWSMobileClient.getInstance());
* }
*
Expand All @@ -209,14 +208,14 @@ public AmazonKinesisVideoWebRTCStorageClient(AWSCredentials awsCredentials,
* provide credentials to authenticate requests with AWS
* services.
*/
public AmazonKinesisVideoWebRTCStorageClient(AWSCredentialsProvider awsCredentialsProvider) {
public AWSKinesisVideoWebRTCStorageClient(AWSCredentialsProvider awsCredentialsProvider) {
this(awsCredentialsProvider, new ClientConfiguration());
}

/**
* Constructs a new client to invoke service methods on
* AmazonKinesisVideoWebRTCStorage using the specified AWS account
* credentials provider and client configuration options.
* AWSKinesisVideoWebRTCStorage using the specified AWS account credentials
* provider and client configuration options.
* <p>
* The client requests are authenticated using the {@link AWSCredentials}
* provided by the {@link AWSCredentialsProvider}. Static AWSCredentials can
Expand All @@ -230,7 +229,7 @@ public AmazonKinesisVideoWebRTCStorageClient(AWSCredentialsProvider awsCredentia
* AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback&lt;UserStateDetails&gt;() {
* &#064;Override
* public void onResult(final UserStateDetails details) {
* AmazonKinesisVideoWebRTCStorageClient client = new AmazonKinesisVideoWebRTCStorageClient(
* AWSKinesisVideoWebRTCStorageClient client = new AWSKinesisVideoWebRTCStorageClient(
* AWSMobileClient.getInstance());
* }
*
Expand All @@ -248,19 +247,18 @@ public AmazonKinesisVideoWebRTCStorageClient(AWSCredentialsProvider awsCredentia
* provide credentials to authenticate requests with AWS
* services.
* @param clientConfiguration The client configuration options controlling
* how this client connects to AmazonKinesisVideoWebRTCStorage
* (ex: proxy settings, retry counts, etc.).
* how this client connects to AWSKinesisVideoWebRTCStorage (ex:
* proxy settings, retry counts, etc.).
*/
public AmazonKinesisVideoWebRTCStorageClient(AWSCredentialsProvider awsCredentialsProvider,
public AWSKinesisVideoWebRTCStorageClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration) {
this(awsCredentialsProvider, clientConfiguration, new UrlHttpClient(clientConfiguration));
}

/**
* Constructs a new client to invoke service methods on
* AmazonKinesisVideoWebRTCStorage using the specified AWS account
* credentials provider, client configuration options and request metric
* collector.
* AWSKinesisVideoWebRTCStorage using the specified AWS account credentials
* provider, client configuration options and request metric collector.
* <p>
* All service calls made using this new client object are blocking, and
* will not return until the service call completes.
Expand All @@ -269,12 +267,12 @@ public AmazonKinesisVideoWebRTCStorageClient(AWSCredentialsProvider awsCredentia
* provide credentials to authenticate requests with AWS
* services.
* @param clientConfiguration The client configuration options controlling
* how this client connects to AmazonKinesisVideoWebRTCStorage
* (ex: proxy settings, retry counts, etc.).
* how this client connects to AWSKinesisVideoWebRTCStorage (ex:
* proxy settings, retry counts, etc.).
* @param requestMetricCollector optional request metric collector
*/
@Deprecated
public AmazonKinesisVideoWebRTCStorageClient(AWSCredentialsProvider awsCredentialsProvider,
public AWSKinesisVideoWebRTCStorageClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
RequestMetricCollector requestMetricCollector) {
super(adjustClientConfiguration(clientConfiguration), requestMetricCollector);
Expand All @@ -286,9 +284,8 @@ public AmazonKinesisVideoWebRTCStorageClient(AWSCredentialsProvider awsCredentia

/**
* Constructs a new client to invoke service methods on
* AmazonKinesisVideoWebRTCStorage using the specified AWS account
* credentials provider, client configuration options and request metric
* collector.
* AWSKinesisVideoWebRTCStorage using the specified AWS account credentials
* provider, client configuration options and request metric collector.
* <p>
* The client requests are authenticated using the {@link AWSCredentials}
* provided by the {@link AWSCredentialsProvider}. Static AWSCredentials can
Expand All @@ -302,7 +299,7 @@ public AmazonKinesisVideoWebRTCStorageClient(AWSCredentialsProvider awsCredentia
* AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback&lt;UserStateDetails&gt;() {
* &#064;Override
* public void onResult(final UserStateDetails details) {
* AmazonKinesisVideoWebRTCStorageClient client = new AmazonKinesisVideoWebRTCStorageClient(
* AWSKinesisVideoWebRTCStorageClient client = new AWSKinesisVideoWebRTCStorageClient(
* AWSMobileClient.getInstance());
* }
*
Expand All @@ -320,11 +317,11 @@ public AmazonKinesisVideoWebRTCStorageClient(AWSCredentialsProvider awsCredentia
* provide credentials to authenticate requests with AWS
* services.
* @param clientConfiguration The client configuration options controlling
* how this client connects to AmazonKinesisVideoWebRTCStorage
* (ex: proxy settings, retry counts, etc.).
* how this client connects to AWSKinesisVideoWebRTCStorage (ex:
* proxy settings, retry counts, etc.).
* @param httpClient A http client
*/
public AmazonKinesisVideoWebRTCStorageClient(AWSCredentialsProvider awsCredentialsProvider,
public AWSKinesisVideoWebRTCStorageClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration, HttpClient httpClient) {
super(adjustClientConfiguration(clientConfiguration), httpClient);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Classes modeling the various types represented by AmazonKinesisVideoWebRTCStorage
* Classes modeling the various types represented by AWSKinesisVideoWebRTCStorage
*/

package com.amazonaws.services.kinesisvideowebrtcstorage.model;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public Request<JoinStorageSessionAsViewerRequest> marshall(
}

Request<JoinStorageSessionAsViewerRequest> request = new DefaultRequest<JoinStorageSessionAsViewerRequest>(
joinStorageSessionAsViewerRequest, "AmazonKinesisVideoWebRTCStorage");
joinStorageSessionAsViewerRequest, "AWSKinesisVideoWebRTCStorage");
request.setHttpMethod(HttpMethodName.POST);

String uriResourcePath = "/joinStorageSessionAsViewer";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public Request<JoinStorageSessionRequest> marshall(
}

Request<JoinStorageSessionRequest> request = new DefaultRequest<JoinStorageSessionRequest>(
joinStorageSessionRequest, "AmazonKinesisVideoWebRTCStorage");
joinStorageSessionRequest, "AWSKinesisVideoWebRTCStorage");
request.setHttpMethod(HttpMethodName.POST);

String uriResourcePath = "/joinStorageSession";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Marhsalling for the various types represented byAmazonKinesisVideoWebRTCStorage
* Marhsalling for the various types represented byAWSKinesisVideoWebRTCStorage
*/

package com.amazonaws.services.kinesisvideowebrtcstorage.model.transform;
Expand Down

0 comments on commit cf94e1d

Please sign in to comment.