Skip to content

Commit 2384e24

Browse files
chore(java): mark every class as internal (#2323)
This marks all the java classes as internal so the generator can be published to maven without an expectation of the java code itself being GA.
1 parent c888af2 commit 2384e24

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+94
-0
lines changed

codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsAuthPlugin.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,13 @@
4343
import software.amazon.smithy.utils.ListUtils;
4444
import software.amazon.smithy.utils.MapUtils;
4545
import software.amazon.smithy.utils.SetUtils;
46+
import software.amazon.smithy.utils.SmithyInternalApi;
4647

4748
/**
4849
* Configure clients with AWS auth configurations and plugin.
4950
*/
5051
// TODO: Think about AWS Auth supported for only some operations and not all, when not AWS service, with say @auth([])
52+
@SmithyInternalApi
5153
public final class AddAwsAuthPlugin implements TypeScriptIntegration {
5254
static final String STS_CLIENT_PREFIX = "sts-client-";
5355
static final String ROLE_ASSUMERS_FILE = "defaultRoleAssumers";

codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsRuntimeConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import software.amazon.smithy.typescript.codegen.TypeScriptWriter;
3434
import software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration;
3535
import software.amazon.smithy.utils.MapUtils;
36+
import software.amazon.smithy.utils.SmithyInternalApi;
3637

3738
// TODO: This javadoc is specific to needs of AWS client. However it has elements that would be needed by non-AWS
3839
// clients too, like logger, region for SigV4. We should refactor these into different Integration or rename this
@@ -74,6 +75,7 @@
7475
* <li>logger: Sets to empty as logger is passed in client configuration</li>
7576
* </ul>
7677
*/
78+
@SmithyInternalApi
7779
public final class AddAwsRuntimeConfig implements TypeScriptIntegration {
7880

7981
private static final Logger LOGGER = Logger.getLogger(AddAwsRuntimeConfig.class.getName());

codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddBodyChecksumGeneratorDependency.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@
2929
import software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration;
3030
import software.amazon.smithy.utils.MapUtils;
3131
import software.amazon.smithy.utils.SetUtils;
32+
import software.amazon.smithy.utils.SmithyInternalApi;
3233

3334
/**
3435
* Adds blobReader dependency if needed.
3536
*/
37+
@SmithyInternalApi
3638
public class AddBodyChecksumGeneratorDependency implements TypeScriptIntegration {
3739
private static final Set<String> SERVICE_IDS = SetUtils.of("Glacier");
3840

codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddBuiltinPlugins.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@
3131
import software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration;
3232
import software.amazon.smithy.utils.ListUtils;
3333
import software.amazon.smithy.utils.SetUtils;
34+
import software.amazon.smithy.utils.SmithyInternalApi;
3435

3536
/**
3637
* Adds all built-in runtime client plugins to clients.
3738
*/
39+
@SmithyInternalApi
3840
public class AddBuiltinPlugins implements TypeScriptIntegration {
3941
private static final Set<String> ROUTE_53_ID_MEMBERS = SetUtils.of("DelegationSetId", "HostedZoneId", "Id");
4042

codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddCrossRegionCopyingPlugin.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
import software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration;
2626
import software.amazon.smithy.utils.ListUtils;
2727
import software.amazon.smithy.utils.SetUtils;
28+
import software.amazon.smithy.utils.SmithyInternalApi;
2829

30+
@SmithyInternalApi
2931
public class AddCrossRegionCopyingPlugin implements TypeScriptIntegration {
3032
private static final Set<String> SHARED_PRESIGNED_URL_OPERATIONS = SetUtils.of(
3133
"CopyDBClusterSnapshot",

codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddDocumentClientPlugin.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@
3232
import software.amazon.smithy.typescript.codegen.TypeScriptWriter;
3333
import software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration;
3434
import software.amazon.smithy.utils.IoUtils;
35+
import software.amazon.smithy.utils.SmithyInternalApi;
3536

3637
/**
3738
* Generates Client and Commands for DynamoDB Document Client.
3839
*/
40+
@SmithyInternalApi
3941
public class AddDocumentClientPlugin implements TypeScriptIntegration {
4042

4143
@Override

codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddEventStreamHandlingDependency.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,13 @@
3737
import software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration;
3838
import software.amazon.smithy.utils.ListUtils;
3939
import software.amazon.smithy.utils.MapUtils;
40+
import software.amazon.smithy.utils.SmithyInternalApi;
4041

4142
/**
4243
* Adds runtime client plugins that handle the eventstream flow in request,
4344
* including eventstream payload signing.
4445
*/
46+
@SmithyInternalApi
4547
public class AddEventStreamHandlingDependency implements TypeScriptIntegration {
4648
@Override
4749
public List<RuntimeClientPlugin> getClientPlugins() {

codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddHttp2Dependency.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
import software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration;
3030
import software.amazon.smithy.utils.ListUtils;
3131
import software.amazon.smithy.utils.MapUtils;
32+
import software.amazon.smithy.utils.SmithyInternalApi;
3233

34+
@SmithyInternalApi
3335
public class AddHttp2Dependency implements TypeScriptIntegration {
3436
@Override
3537
public Map<String, Consumer<TypeScriptWriter>> getRuntimeConfigWriters(

codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddMd5HashDependency.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,12 @@
3030
import software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration;
3131
import software.amazon.smithy.utils.MapUtils;
3232
import software.amazon.smithy.utils.SetUtils;
33+
import software.amazon.smithy.utils.SmithyInternalApi;
3334

3435
/**
3536
* Adds Md5Hash if needed.
3637
*/
38+
@SmithyInternalApi
3739
public class AddMd5HashDependency implements TypeScriptIntegration {
3840
private static final Set<String> SERVICE_IDS = SetUtils.of("S3", "SQS");
3941

codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddOmitRetryHeadersDependency.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@
2525
import software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration;
2626
import software.amazon.smithy.utils.ListUtils;
2727
import software.amazon.smithy.utils.SetUtils;
28+
import software.amazon.smithy.utils.SmithyInternalApi;
2829

2930

31+
@SmithyInternalApi
3032
public class AddOmitRetryHeadersDependency implements TypeScriptIntegration {
3133
private static final Set<String> SERVICE_IDS = SetUtils.of(
3234
"ConnectParticipant", // P43593766

0 commit comments

Comments
 (0)