Class AwsSmokeTestModel
- java.lang.Object
-
- software.amazon.smithy.aws.smoketests.model.AwsSmokeTestModel
-
public final class AwsSmokeTestModel extends java.lang.Object
Provides methods for interfacing with Java representations of the different kinds of vendor params shapes used in smoke tests for AWS services.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Optional<AwsVendorParams>
getAwsVendorParams(SmokeTestCase forTestCase)
Gets the vendor params for the givenforTestCase
asAwsVendorParams
.static java.util.Optional<S3VendorParams>
getS3VendorParams(SmokeTestCase forTestCase)
Gets the vendor params for the givenforTestCase
asS3VendorParams
.static boolean
hasAwsVendorParams(SmokeTestCase testCase)
static boolean
hasS3VendorParams(SmokeTestCase testCase)
-
-
-
Method Detail
-
hasAwsVendorParams
public static boolean hasAwsVendorParams(SmokeTestCase testCase)
- Parameters:
testCase
- The test case to check.- Returns:
true
if thetestCase
'sSmokeTestCase.getVendorParams()
areAwsVendorParams
.
-
hasS3VendorParams
public static boolean hasS3VendorParams(SmokeTestCase testCase)
- Parameters:
testCase
- The test case to check.- Returns:
true
if thetestCase
'sSmokeTestCase.getVendorParams()
areS3VendorParams
.
-
getAwsVendorParams
public static java.util.Optional<AwsVendorParams> getAwsVendorParams(SmokeTestCase forTestCase)
Gets the vendor params for the givenforTestCase
asAwsVendorParams
.The vendor params will be present if
hasAwsVendorParams(SmokeTestCase)
wastrue
for the givenforTestCase
.- Parameters:
forTestCase
- The test case to get vendor params for.- Returns:
- The optionally present vendor params as
S3VendorParams
.
-
getS3VendorParams
public static java.util.Optional<S3VendorParams> getS3VendorParams(SmokeTestCase forTestCase)
Gets the vendor params for the givenforTestCase
asS3VendorParams
.The vendor params will be present if
hasS3VendorParams(SmokeTestCase)
wastrue
for the givenforTestCase
.- Parameters:
forTestCase
- The test case to get vendor params for.- Returns:
- The optionally present vendor params as
S3VendorParams
.
-
-