index
int64
0
0
repo_id
stringlengths
26
205
file_path
stringlengths
51
246
content
stringlengths
8
433k
__index_level_0__
int64
0
10k
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/BinaryMessage.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.EventStreamRPCServiceModel; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class BinaryMessage implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#BinaryMessage"; public static final BinaryMessage VOID; static { VOID = new BinaryMessage() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<byte[]> message; @Expose( serialize = true, deserialize = true ) private Optional<MessageContext> context; public BinaryMessage() { this.message = Optional.empty(); this.context = Optional.empty(); } /** * The binary message as a blob. */ public byte[] getMessage() { if (message.isPresent()) { return message.get(); } return null; } /** * The binary message as a blob. */ public void setMessage(final byte[] message) { this.message = Optional.ofNullable(message); } /** * The binary message as a blob. */ public BinaryMessage withMessage(final byte[] message) { setMessage(message); return this; } /** * The context of the message, such as the topic where the message was published. */ public MessageContext getContext() { if (context.isPresent()) { return context.get(); } return null; } /** * The context of the message, such as the topic where the message was published. */ public void setContext(final MessageContext context) { this.context = Optional.ofNullable(context); } /** * The context of the message, such as the topic where the message was published. */ public BinaryMessage withContext(final MessageContext context) { setContext(context); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof BinaryMessage)) return false; if (this == rhs) return true; final BinaryMessage other = (BinaryMessage)rhs; boolean isEquals = true; isEquals = isEquals && EventStreamRPCServiceModel.blobTypeEquals(this.message, other.message); isEquals = isEquals && this.context.equals(other.context); return isEquals; } @Override public int hashCode() { return Objects.hash(message, context); } }
5,300
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/GreengrassCoreIPCError.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import java.lang.String; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; import software.amazon.awssdk.eventstreamrpc.model.EventStreamOperationError; public abstract class GreengrassCoreIPCError extends EventStreamOperationError implements EventStreamJsonMessage { GreengrassCoreIPCError(String errorCode, String errorMessage) { super("aws.greengrass#GreengrassCoreIPC", errorCode, errorMessage); } public abstract String getErrorTypeString(); public boolean isRetryable() { return getErrorTypeString().equals("server"); } public boolean isServerError() { return getErrorTypeString().equals("server"); } public boolean isClientError() { return getErrorTypeString().equals("client"); } }
5,301
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/CertificateUpdate.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.List; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class CertificateUpdate implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#CertificateUpdate"; public static final CertificateUpdate VOID; static { VOID = new CertificateUpdate() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<String> privateKey; @Expose( serialize = true, deserialize = true ) private Optional<String> publicKey; @Expose( serialize = true, deserialize = true ) private Optional<String> certificate; @Expose( serialize = true, deserialize = true ) private Optional<List<String>> caCertificates; public CertificateUpdate() { this.privateKey = Optional.empty(); this.publicKey = Optional.empty(); this.certificate = Optional.empty(); this.caCertificates = Optional.empty(); } /** * The private key in pem format. */ public String getPrivateKey() { if (privateKey.isPresent()) { return privateKey.get(); } return null; } /** * The private key in pem format. */ public void setPrivateKey(final String privateKey) { this.privateKey = Optional.ofNullable(privateKey); } /** * The private key in pem format. */ public CertificateUpdate withPrivateKey(final String privateKey) { setPrivateKey(privateKey); return this; } /** * The public key in pem format. */ public String getPublicKey() { if (publicKey.isPresent()) { return publicKey.get(); } return null; } /** * The public key in pem format. */ public void setPublicKey(final String publicKey) { this.publicKey = Optional.ofNullable(publicKey); } /** * The public key in pem format. */ public CertificateUpdate withPublicKey(final String publicKey) { setPublicKey(publicKey); return this; } /** * The certificate in pem format. */ public String getCertificate() { if (certificate.isPresent()) { return certificate.get(); } return null; } /** * The certificate in pem format. */ public void setCertificate(final String certificate) { this.certificate = Optional.ofNullable(certificate); } /** * The certificate in pem format. */ public CertificateUpdate withCertificate(final String certificate) { setCertificate(certificate); return this; } /** * List of CA certificates in pem format. */ public List<String> getCaCertificates() { if (caCertificates.isPresent()) { return caCertificates.get(); } return null; } /** * List of CA certificates in pem format. */ public void setCaCertificates(final List<String> caCertificates) { this.caCertificates = Optional.ofNullable(caCertificates); } /** * List of CA certificates in pem format. */ public CertificateUpdate withCaCertificates(final List<String> caCertificates) { setCaCertificates(caCertificates); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof CertificateUpdate)) return false; if (this == rhs) return true; final CertificateUpdate other = (CertificateUpdate)rhs; boolean isEquals = true; isEquals = isEquals && this.privateKey.equals(other.privateKey); isEquals = isEquals && this.publicKey.equals(other.publicKey); isEquals = isEquals && this.certificate.equals(other.certificate); isEquals = isEquals && this.caCertificates.equals(other.caCertificates); return isEquals; } @Override public int hashCode() { return Objects.hash(privateKey, publicKey, certificate, caCertificates); } }
5,302
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/Metric.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Double; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class Metric implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#Metric"; public static final Metric VOID; static { VOID = new Metric() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<String> name; @Expose( serialize = true, deserialize = true ) private Optional<String> unit; @Expose( serialize = true, deserialize = true ) private Optional<Double> value; public Metric() { this.name = Optional.empty(); this.unit = Optional.empty(); this.value = Optional.empty(); } public String getName() { if (name.isPresent()) { return name.get(); } return null; } public void setName(final String name) { this.name = Optional.ofNullable(name); } public Metric withName(final String name) { setName(name); return this; } public MetricUnitType getUnit() { if (unit.isPresent()) { return MetricUnitType.get(unit.get()); } return null; } public String getUnitAsString() { if (unit.isPresent()) { return unit.get(); } return null; } public void setUnit(final String unit) { this.unit = Optional.ofNullable(unit); } public Metric withUnit(final String unit) { setUnit(unit); return this; } public void setUnit(final MetricUnitType unit) { this.unit = Optional.ofNullable(unit.getValue()); } public Metric withUnit(final MetricUnitType unit) { setUnit(unit); return this; } public Double getValue() { if (value.isPresent()) { return value.get(); } return null; } public void setValue(final Double value) { this.value = Optional.ofNullable(value); } public Metric withValue(final Double value) { setValue(value); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof Metric)) return false; if (this == rhs) return true; final Metric other = (Metric)rhs; boolean isEquals = true; isEquals = isEquals && this.name.equals(other.name); isEquals = isEquals && this.unit.equals(other.unit); isEquals = isEquals && this.value.equals(other.value); return isEquals; } @Override public int hashCode() { return Objects.hash(name, unit, value); } }
5,303
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/FailedUpdateConditionCheckError.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class FailedUpdateConditionCheckError extends GreengrassCoreIPCError implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#FailedUpdateConditionCheckError"; public static final FailedUpdateConditionCheckError VOID; static { VOID = new FailedUpdateConditionCheckError() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<String> message; public FailedUpdateConditionCheckError(String errorMessage) { super("FailedUpdateConditionCheckError", errorMessage); this.message = Optional.ofNullable(errorMessage); } public FailedUpdateConditionCheckError() { super("FailedUpdateConditionCheckError", ""); this.message = Optional.empty(); } @Override public String getErrorTypeString() { return "client"; } public String getMessage() { if (message.isPresent()) { return message.get(); } return null; } public void setMessage(final String message) { this.message = Optional.ofNullable(message); } public FailedUpdateConditionCheckError withMessage(final String message) { setMessage(message); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof FailedUpdateConditionCheckError)) return false; if (this == rhs) return true; final FailedUpdateConditionCheckError other = (FailedUpdateConditionCheckError)rhs; boolean isEquals = true; isEquals = isEquals && this.message.equals(other.message); return isEquals; } @Override public int hashCode() { return Objects.hash(message); } }
5,304
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/AuthorizeClientDeviceActionRequest.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class AuthorizeClientDeviceActionRequest implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#AuthorizeClientDeviceActionRequest"; public static final AuthorizeClientDeviceActionRequest VOID; static { VOID = new AuthorizeClientDeviceActionRequest() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<String> clientDeviceAuthToken; @Expose( serialize = true, deserialize = true ) private Optional<String> operation; @Expose( serialize = true, deserialize = true ) private Optional<String> resource; public AuthorizeClientDeviceActionRequest() { this.clientDeviceAuthToken = Optional.empty(); this.operation = Optional.empty(); this.resource = Optional.empty(); } /** * The session token for the client device from GetClientDeviceAuthToken. */ public String getClientDeviceAuthToken() { if (clientDeviceAuthToken.isPresent()) { return clientDeviceAuthToken.get(); } return null; } /** * The session token for the client device from GetClientDeviceAuthToken. */ public void setClientDeviceAuthToken(final String clientDeviceAuthToken) { this.clientDeviceAuthToken = Optional.ofNullable(clientDeviceAuthToken); } /** * The session token for the client device from GetClientDeviceAuthToken. */ public AuthorizeClientDeviceActionRequest withClientDeviceAuthToken( final String clientDeviceAuthToken) { setClientDeviceAuthToken(clientDeviceAuthToken); return this; } /** * The operation to authorize. */ public String getOperation() { if (operation.isPresent()) { return operation.get(); } return null; } /** * The operation to authorize. */ public void setOperation(final String operation) { this.operation = Optional.ofNullable(operation); } /** * The operation to authorize. */ public AuthorizeClientDeviceActionRequest withOperation(final String operation) { setOperation(operation); return this; } /** * The resource the client device performs the operation on. */ public String getResource() { if (resource.isPresent()) { return resource.get(); } return null; } /** * The resource the client device performs the operation on. */ public void setResource(final String resource) { this.resource = Optional.ofNullable(resource); } /** * The resource the client device performs the operation on. */ public AuthorizeClientDeviceActionRequest withResource(final String resource) { setResource(resource); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof AuthorizeClientDeviceActionRequest)) return false; if (this == rhs) return true; final AuthorizeClientDeviceActionRequest other = (AuthorizeClientDeviceActionRequest)rhs; boolean isEquals = true; isEquals = isEquals && this.clientDeviceAuthToken.equals(other.clientDeviceAuthToken); isEquals = isEquals && this.operation.equals(other.operation); isEquals = isEquals && this.resource.equals(other.resource); return isEquals; } @Override public int hashCode() { return Objects.hash(clientDeviceAuthToken, operation, resource); } }
5,305
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/SubscribeToCertificateUpdatesRequest.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class SubscribeToCertificateUpdatesRequest implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#SubscribeToCertificateUpdatesRequest"; public static final SubscribeToCertificateUpdatesRequest VOID; static { VOID = new SubscribeToCertificateUpdatesRequest() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<CertificateOptions> certificateOptions; public SubscribeToCertificateUpdatesRequest() { this.certificateOptions = Optional.empty(); } public CertificateOptions getCertificateOptions() { if (certificateOptions.isPresent()) { return certificateOptions.get(); } return null; } public void setCertificateOptions(final CertificateOptions certificateOptions) { this.certificateOptions = Optional.ofNullable(certificateOptions); } public SubscribeToCertificateUpdatesRequest withCertificateOptions( final CertificateOptions certificateOptions) { setCertificateOptions(certificateOptions); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof SubscribeToCertificateUpdatesRequest)) return false; if (this == rhs) return true; final SubscribeToCertificateUpdatesRequest other = (SubscribeToCertificateUpdatesRequest)rhs; boolean isEquals = true; isEquals = isEquals && this.certificateOptions.equals(other.certificateOptions); return isEquals; } @Override public int hashCode() { return Objects.hash(certificateOptions); } }
5,306
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/ResourceNotFoundError.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class ResourceNotFoundError extends GreengrassCoreIPCError implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#ResourceNotFoundError"; public static final ResourceNotFoundError VOID; static { VOID = new ResourceNotFoundError() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<String> message; @Expose( serialize = true, deserialize = true ) private Optional<String> resourceType; @Expose( serialize = true, deserialize = true ) private Optional<String> resourceName; public ResourceNotFoundError(String errorMessage) { super("ResourceNotFoundError", errorMessage); this.message = Optional.ofNullable(errorMessage); this.resourceType = Optional.empty(); this.resourceName = Optional.empty(); } public ResourceNotFoundError() { super("ResourceNotFoundError", ""); this.message = Optional.empty(); this.resourceType = Optional.empty(); this.resourceName = Optional.empty(); } @Override public String getErrorTypeString() { return "client"; } public String getMessage() { if (message.isPresent()) { return message.get(); } return null; } public void setMessage(final String message) { this.message = Optional.ofNullable(message); } public ResourceNotFoundError withMessage(final String message) { setMessage(message); return this; } public String getResourceType() { if (resourceType.isPresent()) { return resourceType.get(); } return null; } public void setResourceType(final String resourceType) { this.resourceType = Optional.ofNullable(resourceType); } public ResourceNotFoundError withResourceType(final String resourceType) { setResourceType(resourceType); return this; } public String getResourceName() { if (resourceName.isPresent()) { return resourceName.get(); } return null; } public void setResourceName(final String resourceName) { this.resourceName = Optional.ofNullable(resourceName); } public ResourceNotFoundError withResourceName(final String resourceName) { setResourceName(resourceName); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof ResourceNotFoundError)) return false; if (this == rhs) return true; final ResourceNotFoundError other = (ResourceNotFoundError)rhs; boolean isEquals = true; isEquals = isEquals && this.message.equals(other.message); isEquals = isEquals && this.resourceType.equals(other.resourceType); isEquals = isEquals && this.resourceName.equals(other.resourceName); return isEquals; } @Override public int hashCode() { return Objects.hash(message, resourceType, resourceName); } }
5,307
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/LifecycleState.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.SerializedName; import java.lang.Override; import java.lang.String; import java.util.HashMap; import java.util.Map; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public enum LifecycleState implements EventStreamJsonMessage { @SerializedName("RUNNING") RUNNING("RUNNING"), @SerializedName("ERRORED") ERRORED("ERRORED"), @SerializedName("NEW") NEW("NEW"), @SerializedName("FINISHED") FINISHED("FINISHED"), @SerializedName("INSTALLED") INSTALLED("INSTALLED"), @SerializedName("BROKEN") BROKEN("BROKEN"), @SerializedName("STARTING") STARTING("STARTING"), @SerializedName("STOPPING") STOPPING("STOPPING"); public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#LifecycleState"; private static final Map<String, LifecycleState> lookup = new HashMap<String, LifecycleState>(); static { for (LifecycleState value:LifecycleState.values()) { lookup.put(value.getValue(), value); } } String value; LifecycleState(String value) { this.value = value; } public String getValue() { return value; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } public static LifecycleState get(String value) { return lookup.get(value); } }
5,308
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/CertificateOptions.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class CertificateOptions implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#CertificateOptions"; public static final CertificateOptions VOID; static { VOID = new CertificateOptions() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<String> certificateType; public CertificateOptions() { this.certificateType = Optional.empty(); } public CertificateType getCertificateType() { if (certificateType.isPresent()) { return CertificateType.get(certificateType.get()); } return null; } /** * The types of certificate updates to subscribe to. */ public String getCertificateTypeAsString() { if (certificateType.isPresent()) { return certificateType.get(); } return null; } /** * The types of certificate updates to subscribe to. */ public void setCertificateType(final String certificateType) { this.certificateType = Optional.ofNullable(certificateType); } /** * The types of certificate updates to subscribe to. */ public CertificateOptions withCertificateType(final String certificateType) { setCertificateType(certificateType); return this; } /** * The types of certificate updates to subscribe to. */ public void setCertificateType(final CertificateType certificateType) { this.certificateType = Optional.ofNullable(certificateType.getValue()); } /** * The types of certificate updates to subscribe to. */ public CertificateOptions withCertificateType(final CertificateType certificateType) { setCertificateType(certificateType); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof CertificateOptions)) return false; if (this == rhs) return true; final CertificateOptions other = (CertificateOptions)rhs; boolean isEquals = true; isEquals = isEquals && this.certificateType.equals(other.certificateType); return isEquals; } @Override public int hashCode() { return Objects.hash(certificateType); } }
5,309
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/PublishMessage.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import java.util.function.Consumer; import java.util.function.Predicate; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class PublishMessage implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#PublishMessage"; private transient UnionMember setUnionMember; @Expose( serialize = true, deserialize = true ) private Optional<JsonMessage> jsonMessage; @Expose( serialize = true, deserialize = true ) private Optional<BinaryMessage> binaryMessage; public PublishMessage() { this.jsonMessage = Optional.empty(); this.binaryMessage = Optional.empty(); } public JsonMessage getJsonMessage() { if (jsonMessage.isPresent() && (setUnionMember == UnionMember.JSON_MESSAGE)) { return jsonMessage.get(); } return null; } public void setJsonMessage(final JsonMessage jsonMessage) { if (setUnionMember != null) { setUnionMember.nullify(this); } this.jsonMessage = Optional.of(jsonMessage); this.setUnionMember = UnionMember.JSON_MESSAGE; } public PublishMessage withJsonMessage(final JsonMessage jsonMessage) { setJsonMessage(jsonMessage); return this; } public BinaryMessage getBinaryMessage() { if (binaryMessage.isPresent() && (setUnionMember == UnionMember.BINARY_MESSAGE)) { return binaryMessage.get(); } return null; } public void setBinaryMessage(final BinaryMessage binaryMessage) { if (setUnionMember != null) { setUnionMember.nullify(this); } this.binaryMessage = Optional.of(binaryMessage); this.setUnionMember = UnionMember.BINARY_MESSAGE; } public PublishMessage withBinaryMessage(final BinaryMessage binaryMessage) { setBinaryMessage(binaryMessage); return this; } /** * Returns an indicator for which enum member is set. Can be used to convert to proper type. */ public UnionMember getSetUnionMember() { return setUnionMember; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } public void selfDesignateSetUnionMember() { int setCount = 0; UnionMember[] members = UnionMember.values(); for (int memberIdx = 0; memberIdx < UnionMember.values().length; ++memberIdx) { if (members[memberIdx].isPresent(this)) { ++setCount; this.setUnionMember = members[memberIdx]; } } // only bad outcome here is if there's more than one member set. It's possible for none to be set if (setCount > 1) { throw new IllegalArgumentException("More than one union member set for type: " + getApplicationModelType()); } } @Override public void postFromJson() { selfDesignateSetUnionMember(); } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof PublishMessage)) return false; if (this == rhs) return true; final PublishMessage other = (PublishMessage)rhs; boolean isEquals = true; isEquals = isEquals && this.jsonMessage.equals(other.jsonMessage); isEquals = isEquals && this.binaryMessage.equals(other.binaryMessage); isEquals = isEquals && this.setUnionMember.equals(other.setUnionMember); return isEquals; } @Override public int hashCode() { return Objects.hash(jsonMessage, binaryMessage, setUnionMember); } public enum UnionMember { JSON_MESSAGE("JSON_MESSAGE", (software.amazon.awssdk.aws.greengrass.model.PublishMessage obj) -> obj.jsonMessage = Optional.empty(), (software.amazon.awssdk.aws.greengrass.model.PublishMessage obj) -> obj.jsonMessage != null && obj.jsonMessage.isPresent()), BINARY_MESSAGE("BINARY_MESSAGE", (software.amazon.awssdk.aws.greengrass.model.PublishMessage obj) -> obj.binaryMessage = Optional.empty(), (software.amazon.awssdk.aws.greengrass.model.PublishMessage obj) -> obj.binaryMessage != null && obj.binaryMessage.isPresent()); private String fieldName; private Consumer<PublishMessage> nullifier; private Predicate<PublishMessage> isPresent; UnionMember(String fieldName, Consumer<PublishMessage> nullifier, Predicate<PublishMessage> isPresent) { this.fieldName = fieldName; this.nullifier = nullifier; this.isPresent = isPresent; } void nullify(PublishMessage obj) { nullifier.accept(obj); } boolean isPresent(PublishMessage obj) { return isPresent.test(obj); } } }
5,310
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/ListNamedShadowsForThingRequest.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Integer; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class ListNamedShadowsForThingRequest implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#ListNamedShadowsForThingRequest"; public static final ListNamedShadowsForThingRequest VOID; static { VOID = new ListNamedShadowsForThingRequest() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<String> thingName; @Expose( serialize = true, deserialize = true ) private Optional<String> nextToken; @Expose( serialize = true, deserialize = true ) private Optional<Integer> pageSize; public ListNamedShadowsForThingRequest() { this.thingName = Optional.empty(); this.nextToken = Optional.empty(); this.pageSize = Optional.empty(); } /** * The name of the thing. */ public String getThingName() { if (thingName.isPresent()) { return thingName.get(); } return null; } /** * The name of the thing. */ public void setThingName(final String thingName) { this.thingName = Optional.ofNullable(thingName); } /** * The name of the thing. */ public ListNamedShadowsForThingRequest withThingName(final String thingName) { setThingName(thingName); return this; } /** * (Optional) The token to retrieve the next set of results. This value is returned on paged results and is used in the call that returns the next page. */ public String getNextToken() { if (nextToken.isPresent()) { return nextToken.get(); } return null; } /** * (Optional) The token to retrieve the next set of results. This value is returned on paged results and is used in the call that returns the next page. */ public void setNextToken(final String nextToken) { this.nextToken = Optional.ofNullable(nextToken); } /** * (Optional) The token to retrieve the next set of results. This value is returned on paged results and is used in the call that returns the next page. */ public ListNamedShadowsForThingRequest withNextToken(final String nextToken) { setNextToken(nextToken); return this; } /** * (Optional) The number of shadow names to return in each call. Value must be between 1 and 100. Default is 25. */ public Integer getPageSize() { if (pageSize.isPresent()) { return pageSize.get(); } return null; } /** * (Optional) The number of shadow names to return in each call. Value must be between 1 and 100. Default is 25. */ public void setPageSize(final Integer pageSize) { this.pageSize = Optional.ofNullable(pageSize); } /** * (Optional) The number of shadow names to return in each call. Value must be between 1 and 100. Default is 25. */ public ListNamedShadowsForThingRequest withPageSize(final Integer pageSize) { setPageSize(pageSize); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof ListNamedShadowsForThingRequest)) return false; if (this == rhs) return true; final ListNamedShadowsForThingRequest other = (ListNamedShadowsForThingRequest)rhs; boolean isEquals = true; isEquals = isEquals && this.thingName.equals(other.thingName); isEquals = isEquals && this.nextToken.equals(other.nextToken); isEquals = isEquals && this.pageSize.equals(other.pageSize); return isEquals; } @Override public int hashCode() { return Objects.hash(thingName, nextToken, pageSize); } }
5,311
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/CancelLocalDeploymentResponse.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class CancelLocalDeploymentResponse implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#CancelLocalDeploymentResponse"; public static final CancelLocalDeploymentResponse VOID; static { VOID = new CancelLocalDeploymentResponse() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<String> message; public CancelLocalDeploymentResponse() { this.message = Optional.empty(); } public String getMessage() { if (message.isPresent()) { return message.get(); } return null; } public void setMessage(final String message) { this.message = Optional.ofNullable(message); } public CancelLocalDeploymentResponse withMessage(final String message) { setMessage(message); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof CancelLocalDeploymentResponse)) return false; if (this == rhs) return true; final CancelLocalDeploymentResponse other = (CancelLocalDeploymentResponse)rhs; boolean isEquals = true; isEquals = isEquals && this.message.equals(other.message); return isEquals; } @Override public int hashCode() { return Objects.hash(message); } }
5,312
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/QOS.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.SerializedName; import java.lang.Override; import java.lang.String; import java.util.HashMap; import java.util.Map; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public enum QOS implements EventStreamJsonMessage { @SerializedName("0") AT_MOST_ONCE("0"), @SerializedName("1") AT_LEAST_ONCE("1"); public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#QOS"; private static final Map<String, QOS> lookup = new HashMap<String, QOS>(); static { for (QOS value:QOS.values()) { lookup.put(value.getValue(), value); } } String value; QOS(String value) { this.value = value; } public String getValue() { return value; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } public static QOS get(String value) { return lookup.get(value); } }
5,313
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/CreateLocalDeploymentRequest.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.List; import java.util.Map; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class CreateLocalDeploymentRequest implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#CreateLocalDeploymentRequest"; public static final CreateLocalDeploymentRequest VOID; static { VOID = new CreateLocalDeploymentRequest() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<String> groupName; @Expose( serialize = true, deserialize = true ) private Optional<Map<String, String>> rootComponentVersionsToAdd; @Expose( serialize = true, deserialize = true ) private Optional<List<String>> rootComponentsToRemove; @Expose( serialize = true, deserialize = true ) private Optional<Map<String, Map<String, Object>>> componentToConfiguration; @Expose( serialize = true, deserialize = true ) private Optional<Map<String, RunWithInfo>> componentToRunWithInfo; @Expose( serialize = true, deserialize = true ) private Optional<String> recipeDirectoryPath; @Expose( serialize = true, deserialize = true ) private Optional<String> artifactsDirectoryPath; @Expose( serialize = true, deserialize = true ) private Optional<String> failureHandlingPolicy; public CreateLocalDeploymentRequest() { this.groupName = Optional.empty(); this.rootComponentVersionsToAdd = Optional.empty(); this.rootComponentsToRemove = Optional.empty(); this.componentToConfiguration = Optional.empty(); this.componentToRunWithInfo = Optional.empty(); this.recipeDirectoryPath = Optional.empty(); this.artifactsDirectoryPath = Optional.empty(); this.failureHandlingPolicy = Optional.empty(); } /** * The thing group name the deployment is targeting. If the group name is not specified, "LOCAL_DEPLOYMENT" will be used. */ public String getGroupName() { if (groupName.isPresent()) { return groupName.get(); } return null; } /** * The thing group name the deployment is targeting. If the group name is not specified, "LOCAL_DEPLOYMENT" will be used. */ public void setGroupName(final String groupName) { this.groupName = Optional.ofNullable(groupName); } /** * The thing group name the deployment is targeting. If the group name is not specified, "LOCAL_DEPLOYMENT" will be used. */ public CreateLocalDeploymentRequest withGroupName(final String groupName) { setGroupName(groupName); return this; } /** * Map of component name to version. Components will be added to the group's existing root components. */ public Map<String, String> getRootComponentVersionsToAdd() { if (rootComponentVersionsToAdd.isPresent()) { return rootComponentVersionsToAdd.get(); } return null; } /** * Map of component name to version. Components will be added to the group's existing root components. */ public void setRootComponentVersionsToAdd(final Map<String, String> rootComponentVersionsToAdd) { this.rootComponentVersionsToAdd = Optional.ofNullable(rootComponentVersionsToAdd); } /** * Map of component name to version. Components will be added to the group's existing root components. */ public CreateLocalDeploymentRequest withRootComponentVersionsToAdd( final Map<String, String> rootComponentVersionsToAdd) { setRootComponentVersionsToAdd(rootComponentVersionsToAdd); return this; } /** * List of components that need to be removed from the group, for example if new artifacts were loaded in this request but recipe version did not change. */ public List<String> getRootComponentsToRemove() { if (rootComponentsToRemove.isPresent()) { return rootComponentsToRemove.get(); } return null; } /** * List of components that need to be removed from the group, for example if new artifacts were loaded in this request but recipe version did not change. */ public void setRootComponentsToRemove(final List<String> rootComponentsToRemove) { this.rootComponentsToRemove = Optional.ofNullable(rootComponentsToRemove); } /** * List of components that need to be removed from the group, for example if new artifacts were loaded in this request but recipe version did not change. */ public CreateLocalDeploymentRequest withRootComponentsToRemove( final List<String> rootComponentsToRemove) { setRootComponentsToRemove(rootComponentsToRemove); return this; } /** * Map of component names to configuration. */ public Map<String, Map<String, Object>> getComponentToConfiguration() { if (componentToConfiguration.isPresent()) { return componentToConfiguration.get(); } return null; } /** * Map of component names to configuration. */ public void setComponentToConfiguration( final Map<String, Map<String, Object>> componentToConfiguration) { this.componentToConfiguration = Optional.ofNullable(componentToConfiguration); } /** * Map of component names to configuration. */ public CreateLocalDeploymentRequest withComponentToConfiguration( final Map<String, Map<String, Object>> componentToConfiguration) { setComponentToConfiguration(componentToConfiguration); return this; } /** * Map of component names to component run as info. */ public Map<String, RunWithInfo> getComponentToRunWithInfo() { if (componentToRunWithInfo.isPresent()) { return componentToRunWithInfo.get(); } return null; } /** * Map of component names to component run as info. */ public void setComponentToRunWithInfo(final Map<String, RunWithInfo> componentToRunWithInfo) { this.componentToRunWithInfo = Optional.ofNullable(componentToRunWithInfo); } /** * Map of component names to component run as info. */ public CreateLocalDeploymentRequest withComponentToRunWithInfo( final Map<String, RunWithInfo> componentToRunWithInfo) { setComponentToRunWithInfo(componentToRunWithInfo); return this; } /** * All recipes files in this directory will be copied over to the Greengrass package store. */ public String getRecipeDirectoryPath() { if (recipeDirectoryPath.isPresent()) { return recipeDirectoryPath.get(); } return null; } /** * All recipes files in this directory will be copied over to the Greengrass package store. */ public void setRecipeDirectoryPath(final String recipeDirectoryPath) { this.recipeDirectoryPath = Optional.ofNullable(recipeDirectoryPath); } /** * All recipes files in this directory will be copied over to the Greengrass package store. */ public CreateLocalDeploymentRequest withRecipeDirectoryPath(final String recipeDirectoryPath) { setRecipeDirectoryPath(recipeDirectoryPath); return this; } /** * All artifact files in this directory will be copied over to the Greengrass package store. */ public String getArtifactsDirectoryPath() { if (artifactsDirectoryPath.isPresent()) { return artifactsDirectoryPath.get(); } return null; } /** * All artifact files in this directory will be copied over to the Greengrass package store. */ public void setArtifactsDirectoryPath(final String artifactsDirectoryPath) { this.artifactsDirectoryPath = Optional.ofNullable(artifactsDirectoryPath); } /** * All artifact files in this directory will be copied over to the Greengrass package store. */ public CreateLocalDeploymentRequest withArtifactsDirectoryPath( final String artifactsDirectoryPath) { setArtifactsDirectoryPath(artifactsDirectoryPath); return this; } public FailureHandlingPolicy getFailureHandlingPolicy() { if (failureHandlingPolicy.isPresent()) { return FailureHandlingPolicy.get(failureHandlingPolicy.get()); } return null; } /** * Deployment failure handling policy. */ public String getFailureHandlingPolicyAsString() { if (failureHandlingPolicy.isPresent()) { return failureHandlingPolicy.get(); } return null; } /** * Deployment failure handling policy. */ public void setFailureHandlingPolicy(final String failureHandlingPolicy) { this.failureHandlingPolicy = Optional.ofNullable(failureHandlingPolicy); } /** * Deployment failure handling policy. */ public CreateLocalDeploymentRequest withFailureHandlingPolicy( final String failureHandlingPolicy) { setFailureHandlingPolicy(failureHandlingPolicy); return this; } /** * Deployment failure handling policy. */ public void setFailureHandlingPolicy(final FailureHandlingPolicy failureHandlingPolicy) { this.failureHandlingPolicy = Optional.ofNullable(failureHandlingPolicy.getValue()); } /** * Deployment failure handling policy. */ public CreateLocalDeploymentRequest withFailureHandlingPolicy( final FailureHandlingPolicy failureHandlingPolicy) { setFailureHandlingPolicy(failureHandlingPolicy); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof CreateLocalDeploymentRequest)) return false; if (this == rhs) return true; final CreateLocalDeploymentRequest other = (CreateLocalDeploymentRequest)rhs; boolean isEquals = true; isEquals = isEquals && this.groupName.equals(other.groupName); isEquals = isEquals && this.rootComponentVersionsToAdd.equals(other.rootComponentVersionsToAdd); isEquals = isEquals && this.rootComponentsToRemove.equals(other.rootComponentsToRemove); isEquals = isEquals && this.componentToConfiguration.equals(other.componentToConfiguration); isEquals = isEquals && this.componentToRunWithInfo.equals(other.componentToRunWithInfo); isEquals = isEquals && this.recipeDirectoryPath.equals(other.recipeDirectoryPath); isEquals = isEquals && this.artifactsDirectoryPath.equals(other.artifactsDirectoryPath); isEquals = isEquals && this.failureHandlingPolicy.equals(other.failureHandlingPolicy); return isEquals; } @Override public int hashCode() { return Objects.hash(groupName, rootComponentVersionsToAdd, rootComponentsToRemove, componentToConfiguration, componentToRunWithInfo, recipeDirectoryPath, artifactsDirectoryPath, failureHandlingPolicy); } }
5,314
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/SystemResourceLimits.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Double; import java.lang.Long; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class SystemResourceLimits implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#SystemResourceLimits"; public static final SystemResourceLimits VOID; static { VOID = new SystemResourceLimits() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<Long> memory; @Expose( serialize = true, deserialize = true ) private Optional<Double> cpus; public SystemResourceLimits() { this.memory = Optional.empty(); this.cpus = Optional.empty(); } /** * (Optional) The maximum amount of RAM (in kilobytes) that this component's processes can use on the core device. */ public Long getMemory() { if (memory.isPresent()) { return memory.get(); } return null; } /** * (Optional) The maximum amount of RAM (in kilobytes) that this component's processes can use on the core device. */ public void setMemory(final Long memory) { this.memory = Optional.ofNullable(memory); } /** * (Optional) The maximum amount of RAM (in kilobytes) that this component's processes can use on the core device. */ public SystemResourceLimits withMemory(final Long memory) { setMemory(memory); return this; } /** * (Optional) The maximum amount of CPU time that this component's processes can use on the core device. */ public Double getCpus() { if (cpus.isPresent()) { return cpus.get(); } return null; } /** * (Optional) The maximum amount of CPU time that this component's processes can use on the core device. */ public void setCpus(final Double cpus) { this.cpus = Optional.ofNullable(cpus); } /** * (Optional) The maximum amount of CPU time that this component's processes can use on the core device. */ public SystemResourceLimits withCpus(final Double cpus) { setCpus(cpus); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof SystemResourceLimits)) return false; if (this == rhs) return true; final SystemResourceLimits other = (SystemResourceLimits)rhs; boolean isEquals = true; isEquals = isEquals && this.memory.equals(other.memory); isEquals = isEquals && this.cpus.equals(other.cpus); return isEquals; } @Override public int hashCode() { return Objects.hash(memory, cpus); } }
5,315
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/SendConfigurationValidityReportRequest.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class SendConfigurationValidityReportRequest implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#SendConfigurationValidityReportRequest"; public static final SendConfigurationValidityReportRequest VOID; static { VOID = new SendConfigurationValidityReportRequest() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<ConfigurationValidityReport> configurationValidityReport; public SendConfigurationValidityReportRequest() { this.configurationValidityReport = Optional.empty(); } /** * The report that tells Greengrass whether or not the configuration update is valid. */ public ConfigurationValidityReport getConfigurationValidityReport() { if (configurationValidityReport.isPresent()) { return configurationValidityReport.get(); } return null; } /** * The report that tells Greengrass whether or not the configuration update is valid. */ public void setConfigurationValidityReport( final ConfigurationValidityReport configurationValidityReport) { this.configurationValidityReport = Optional.ofNullable(configurationValidityReport); } /** * The report that tells Greengrass whether or not the configuration update is valid. */ public SendConfigurationValidityReportRequest withConfigurationValidityReport( final ConfigurationValidityReport configurationValidityReport) { setConfigurationValidityReport(configurationValidityReport); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof SendConfigurationValidityReportRequest)) return false; if (this == rhs) return true; final SendConfigurationValidityReportRequest other = (SendConfigurationValidityReportRequest)rhs; boolean isEquals = true; isEquals = isEquals && this.configurationValidityReport.equals(other.configurationValidityReport); return isEquals; } @Override public int hashCode() { return Objects.hash(configurationValidityReport); } }
5,316
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/ValidateConfigurationUpdateEvent.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Map; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class ValidateConfigurationUpdateEvent implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#ValidateConfigurationUpdateEvent"; public static final ValidateConfigurationUpdateEvent VOID; static { VOID = new ValidateConfigurationUpdateEvent() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<Map<String, Object>> configuration; @Expose( serialize = true, deserialize = true ) private Optional<String> deploymentId; public ValidateConfigurationUpdateEvent() { this.configuration = Optional.empty(); this.deploymentId = Optional.empty(); } /** * The object that contains the new configuration. */ public Map<String, Object> getConfiguration() { if (configuration.isPresent()) { return configuration.get(); } return null; } /** * The object that contains the new configuration. */ public void setConfiguration(final Map<String, Object> configuration) { this.configuration = Optional.ofNullable(configuration); } /** * The object that contains the new configuration. */ public ValidateConfigurationUpdateEvent withConfiguration( final Map<String, Object> configuration) { setConfiguration(configuration); return this; } /** * The ID of the AWS IoT Greengrass deployment that updates the component. */ public String getDeploymentId() { if (deploymentId.isPresent()) { return deploymentId.get(); } return null; } /** * The ID of the AWS IoT Greengrass deployment that updates the component. */ public void setDeploymentId(final String deploymentId) { this.deploymentId = Optional.ofNullable(deploymentId); } /** * The ID of the AWS IoT Greengrass deployment that updates the component. */ public ValidateConfigurationUpdateEvent withDeploymentId(final String deploymentId) { setDeploymentId(deploymentId); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof ValidateConfigurationUpdateEvent)) return false; if (this == rhs) return true; final ValidateConfigurationUpdateEvent other = (ValidateConfigurationUpdateEvent)rhs; boolean isEquals = true; isEquals = isEquals && this.configuration.equals(other.configuration); isEquals = isEquals && this.deploymentId.equals(other.deploymentId); return isEquals; } @Override public int hashCode() { return Objects.hash(configuration, deploymentId); } }
5,317
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/SubscribeToIoTCoreRequest.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class SubscribeToIoTCoreRequest implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#SubscribeToIoTCoreRequest"; public static final SubscribeToIoTCoreRequest VOID; static { VOID = new SubscribeToIoTCoreRequest() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<String> topicName; @Expose( serialize = true, deserialize = true ) private Optional<String> qos; public SubscribeToIoTCoreRequest() { this.topicName = Optional.empty(); this.qos = Optional.empty(); } /** * The topic to which to subscribe. Supports MQTT wildcards. */ public String getTopicName() { if (topicName.isPresent()) { return topicName.get(); } return null; } /** * The topic to which to subscribe. Supports MQTT wildcards. */ public void setTopicName(final String topicName) { this.topicName = Optional.ofNullable(topicName); } /** * The topic to which to subscribe. Supports MQTT wildcards. */ public SubscribeToIoTCoreRequest withTopicName(final String topicName) { setTopicName(topicName); return this; } public QOS getQos() { if (qos.isPresent()) { return QOS.get(qos.get()); } return null; } /** * The MQTT QoS to use. */ public String getQosAsString() { if (qos.isPresent()) { return qos.get(); } return null; } /** * The MQTT QoS to use. */ public void setQos(final String qos) { this.qos = Optional.ofNullable(qos); } /** * The MQTT QoS to use. */ public SubscribeToIoTCoreRequest withQos(final String qos) { setQos(qos); return this; } /** * The MQTT QoS to use. */ public void setQos(final QOS qos) { this.qos = Optional.ofNullable(qos.getValue()); } /** * The MQTT QoS to use. */ public SubscribeToIoTCoreRequest withQos(final QOS qos) { setQos(qos); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof SubscribeToIoTCoreRequest)) return false; if (this == rhs) return true; final SubscribeToIoTCoreRequest other = (SubscribeToIoTCoreRequest)rhs; boolean isEquals = true; isEquals = isEquals && this.topicName.equals(other.topicName); isEquals = isEquals && this.qos.equals(other.qos); return isEquals; } @Override public int hashCode() { return Objects.hash(topicName, qos); } }
5,318
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/RestartComponentRequest.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class RestartComponentRequest implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#RestartComponentRequest"; public static final RestartComponentRequest VOID; static { VOID = new RestartComponentRequest() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<String> componentName; public RestartComponentRequest() { this.componentName = Optional.empty(); } /** * The name of the component. */ public String getComponentName() { if (componentName.isPresent()) { return componentName.get(); } return null; } /** * The name of the component. */ public void setComponentName(final String componentName) { this.componentName = Optional.ofNullable(componentName); } /** * The name of the component. */ public RestartComponentRequest withComponentName(final String componentName) { setComponentName(componentName); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof RestartComponentRequest)) return false; if (this == rhs) return true; final RestartComponentRequest other = (RestartComponentRequest)rhs; boolean isEquals = true; isEquals = isEquals && this.componentName.equals(other.componentName); return isEquals; } @Override public int hashCode() { return Objects.hash(componentName); } }
5,319
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/SecretValue.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import java.util.function.Consumer; import java.util.function.Predicate; import software.amazon.awssdk.eventstreamrpc.EventStreamRPCServiceModel; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class SecretValue implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#SecretValue"; private transient UnionMember setUnionMember; @Expose( serialize = true, deserialize = true ) private Optional<String> secretString; @Expose( serialize = true, deserialize = true ) private Optional<byte[]> secretBinary; public SecretValue() { this.secretString = Optional.empty(); this.secretBinary = Optional.empty(); } public String getSecretString() { if (secretString.isPresent() && (setUnionMember == UnionMember.SECRET_STRING)) { return secretString.get(); } return null; } public void setSecretString(final String secretString) { if (setUnionMember != null) { setUnionMember.nullify(this); } this.secretString = Optional.of(secretString); this.setUnionMember = UnionMember.SECRET_STRING; } public SecretValue withSecretString(final String secretString) { setSecretString(secretString); return this; } public byte[] getSecretBinary() { if (secretBinary.isPresent() && (setUnionMember == UnionMember.SECRET_BINARY)) { return secretBinary.get(); } return null; } public void setSecretBinary(final byte[] secretBinary) { if (setUnionMember != null) { setUnionMember.nullify(this); } this.secretBinary = Optional.of(secretBinary); this.setUnionMember = UnionMember.SECRET_BINARY; } public SecretValue withSecretBinary(final byte[] secretBinary) { setSecretBinary(secretBinary); return this; } /** * Returns an indicator for which enum member is set. Can be used to convert to proper type. */ public UnionMember getSetUnionMember() { return setUnionMember; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } public void selfDesignateSetUnionMember() { int setCount = 0; UnionMember[] members = UnionMember.values(); for (int memberIdx = 0; memberIdx < UnionMember.values().length; ++memberIdx) { if (members[memberIdx].isPresent(this)) { ++setCount; this.setUnionMember = members[memberIdx]; } } // only bad outcome here is if there's more than one member set. It's possible for none to be set if (setCount > 1) { throw new IllegalArgumentException("More than one union member set for type: " + getApplicationModelType()); } } @Override public void postFromJson() { selfDesignateSetUnionMember(); } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof SecretValue)) return false; if (this == rhs) return true; final SecretValue other = (SecretValue)rhs; boolean isEquals = true; isEquals = isEquals && this.secretString.equals(other.secretString); isEquals = isEquals && EventStreamRPCServiceModel.blobTypeEquals(this.secretBinary, other.secretBinary); isEquals = isEquals && this.setUnionMember.equals(other.setUnionMember); return isEquals; } @Override public int hashCode() { return Objects.hash(secretString, secretBinary, setUnionMember); } public enum UnionMember { SECRET_STRING("SECRET_STRING", (software.amazon.awssdk.aws.greengrass.model.SecretValue obj) -> obj.secretString = Optional.empty(), (software.amazon.awssdk.aws.greengrass.model.SecretValue obj) -> obj.secretString != null && obj.secretString.isPresent()), SECRET_BINARY("SECRET_BINARY", (software.amazon.awssdk.aws.greengrass.model.SecretValue obj) -> obj.secretBinary = Optional.empty(), (software.amazon.awssdk.aws.greengrass.model.SecretValue obj) -> obj.secretBinary != null && obj.secretBinary.isPresent()); private String fieldName; private Consumer<SecretValue> nullifier; private Predicate<SecretValue> isPresent; UnionMember(String fieldName, Consumer<SecretValue> nullifier, Predicate<SecretValue> isPresent) { this.fieldName = fieldName; this.nullifier = nullifier; this.isPresent = isPresent; } void nullify(SecretValue obj) { nullifier.accept(obj); } boolean isPresent(SecretValue obj) { return isPresent.test(obj); } } }
5,320
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/ValidateAuthorizationTokenResponse.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Boolean; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class ValidateAuthorizationTokenResponse implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#ValidateAuthorizationTokenResponse"; public static final ValidateAuthorizationTokenResponse VOID; static { VOID = new ValidateAuthorizationTokenResponse() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<Boolean> isValid; public ValidateAuthorizationTokenResponse() { this.isValid = Optional.empty(); } public Boolean isIsValid() { if (isValid.isPresent()) { return isValid.get(); } return null; } public void setIsValid(final Boolean isValid) { this.isValid = Optional.ofNullable(isValid); } public ValidateAuthorizationTokenResponse withIsValid(final Boolean isValid) { setIsValid(isValid); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof ValidateAuthorizationTokenResponse)) return false; if (this == rhs) return true; final ValidateAuthorizationTokenResponse other = (ValidateAuthorizationTokenResponse)rhs; boolean isEquals = true; isEquals = isEquals && this.isValid.equals(other.isValid); return isEquals; } @Override public int hashCode() { return Objects.hash(isValid); } }
5,321
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/SubscribeToTopicResponse.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Deprecated; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class SubscribeToTopicResponse implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#SubscribeToTopicResponse"; public static final SubscribeToTopicResponse VOID; static { VOID = new SubscribeToTopicResponse() { @Override public boolean isVoid() { return true; } }; } /** * @deprecated No longer used */ @Expose( serialize = true, deserialize = true ) @Deprecated private Optional<String> topicName; public SubscribeToTopicResponse() { this.topicName = Optional.empty(); } @Deprecated public String getTopicName() { if (topicName.isPresent()) { return topicName.get(); } return null; } @Deprecated public void setTopicName(final String topicName) { this.topicName = Optional.ofNullable(topicName); } @Deprecated public SubscribeToTopicResponse withTopicName(final String topicName) { setTopicName(topicName); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof SubscribeToTopicResponse)) return false; if (this == rhs) return true; final SubscribeToTopicResponse other = (SubscribeToTopicResponse)rhs; boolean isEquals = true; isEquals = isEquals && this.topicName.equals(other.topicName); return isEquals; } @Override public int hashCode() { return Objects.hash(topicName); } }
5,322
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/ResumeComponentResponse.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class ResumeComponentResponse implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#ResumeComponentResponse"; public static final ResumeComponentResponse VOID; static { VOID = new ResumeComponentResponse() { @Override public boolean isVoid() { return true; } }; } public ResumeComponentResponse() { } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof ResumeComponentResponse)) return false; if (this == rhs) return true; final ResumeComponentResponse other = (ResumeComponentResponse)rhs; boolean isEquals = true; return isEquals; } @Override public int hashCode() { return Objects.hash(); } }
5,323
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/StopComponentResponse.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class StopComponentResponse implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#StopComponentResponse"; public static final StopComponentResponse VOID; static { VOID = new StopComponentResponse() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<String> stopStatus; @Expose( serialize = true, deserialize = true ) private Optional<String> message; public StopComponentResponse() { this.stopStatus = Optional.empty(); this.message = Optional.empty(); } public RequestStatus getStopStatus() { if (stopStatus.isPresent()) { return RequestStatus.get(stopStatus.get()); } return null; } /** * The status of the stop request. */ public String getStopStatusAsString() { if (stopStatus.isPresent()) { return stopStatus.get(); } return null; } /** * The status of the stop request. */ public void setStopStatus(final String stopStatus) { this.stopStatus = Optional.ofNullable(stopStatus); } /** * The status of the stop request. */ public StopComponentResponse withStopStatus(final String stopStatus) { setStopStatus(stopStatus); return this; } /** * The status of the stop request. */ public void setStopStatus(final RequestStatus stopStatus) { this.stopStatus = Optional.ofNullable(stopStatus.getValue()); } /** * The status of the stop request. */ public StopComponentResponse withStopStatus(final RequestStatus stopStatus) { setStopStatus(stopStatus); return this; } /** * A message about why the component failed to stop, if the request failed. */ public String getMessage() { if (message.isPresent()) { return message.get(); } return null; } /** * A message about why the component failed to stop, if the request failed. */ public void setMessage(final String message) { this.message = Optional.ofNullable(message); } /** * A message about why the component failed to stop, if the request failed. */ public StopComponentResponse withMessage(final String message) { setMessage(message); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof StopComponentResponse)) return false; if (this == rhs) return true; final StopComponentResponse other = (StopComponentResponse)rhs; boolean isEquals = true; isEquals = isEquals && this.stopStatus.equals(other.stopStatus); isEquals = isEquals && this.message.equals(other.message); return isEquals; } @Override public int hashCode() { return Objects.hash(stopStatus, message); } }
5,324
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/FailureHandlingPolicy.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.SerializedName; import java.lang.Override; import java.lang.String; import java.util.HashMap; import java.util.Map; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public enum FailureHandlingPolicy implements EventStreamJsonMessage { @SerializedName("ROLLBACK") ROLLBACK("ROLLBACK"), @SerializedName("DO_NOTHING") DO_NOTHING("DO_NOTHING"); public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#FailureHandlingPolicy"; private static final Map<String, FailureHandlingPolicy> lookup = new HashMap<String, FailureHandlingPolicy>(); static { for (FailureHandlingPolicy value:FailureHandlingPolicy.values()) { lookup.put(value.getValue(), value); } } String value; FailureHandlingPolicy(String value) { this.value = value; } public String getValue() { return value; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } public static FailureHandlingPolicy get(String value) { return lookup.get(value); } }
5,325
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/PublishToIoTCoreResponse.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class PublishToIoTCoreResponse implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#PublishToIoTCoreResponse"; public static final PublishToIoTCoreResponse VOID; static { VOID = new PublishToIoTCoreResponse() { @Override public boolean isVoid() { return true; } }; } public PublishToIoTCoreResponse() { } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof PublishToIoTCoreResponse)) return false; if (this == rhs) return true; final PublishToIoTCoreResponse other = (PublishToIoTCoreResponse)rhs; boolean isEquals = true; return isEquals; } @Override public int hashCode() { return Objects.hash(); } }
5,326
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/DeferComponentUpdateRequest.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Long; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class DeferComponentUpdateRequest implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#DeferComponentUpdateRequest"; public static final DeferComponentUpdateRequest VOID; static { VOID = new DeferComponentUpdateRequest() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<String> deploymentId; @Expose( serialize = true, deserialize = true ) private Optional<String> message; @Expose( serialize = true, deserialize = true ) private Optional<Long> recheckAfterMs; public DeferComponentUpdateRequest() { this.deploymentId = Optional.empty(); this.message = Optional.empty(); this.recheckAfterMs = Optional.empty(); } /** * The ID of the AWS IoT Greengrass deployment to defer. */ public String getDeploymentId() { if (deploymentId.isPresent()) { return deploymentId.get(); } return null; } /** * The ID of the AWS IoT Greengrass deployment to defer. */ public void setDeploymentId(final String deploymentId) { this.deploymentId = Optional.ofNullable(deploymentId); } /** * The ID of the AWS IoT Greengrass deployment to defer. */ public DeferComponentUpdateRequest withDeploymentId(final String deploymentId) { setDeploymentId(deploymentId); return this; } /** * (Optional) The name of the component for which to defer updates. Defaults to the name of the component that makes the request. */ public String getMessage() { if (message.isPresent()) { return message.get(); } return null; } /** * (Optional) The name of the component for which to defer updates. Defaults to the name of the component that makes the request. */ public void setMessage(final String message) { this.message = Optional.ofNullable(message); } /** * (Optional) The name of the component for which to defer updates. Defaults to the name of the component that makes the request. */ public DeferComponentUpdateRequest withMessage(final String message) { setMessage(message); return this; } /** * The amount of time in milliseconds for which to defer the update. Greengrass waits for this amount of time and then sends another PreComponentUpdateEvent */ public Long getRecheckAfterMs() { if (recheckAfterMs.isPresent()) { return recheckAfterMs.get(); } return null; } /** * The amount of time in milliseconds for which to defer the update. Greengrass waits for this amount of time and then sends another PreComponentUpdateEvent */ public void setRecheckAfterMs(final Long recheckAfterMs) { this.recheckAfterMs = Optional.ofNullable(recheckAfterMs); } /** * The amount of time in milliseconds for which to defer the update. Greengrass waits for this amount of time and then sends another PreComponentUpdateEvent */ public DeferComponentUpdateRequest withRecheckAfterMs(final Long recheckAfterMs) { setRecheckAfterMs(recheckAfterMs); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof DeferComponentUpdateRequest)) return false; if (this == rhs) return true; final DeferComponentUpdateRequest other = (DeferComponentUpdateRequest)rhs; boolean isEquals = true; isEquals = isEquals && this.deploymentId.equals(other.deploymentId); isEquals = isEquals && this.message.equals(other.message); isEquals = isEquals && this.recheckAfterMs.equals(other.recheckAfterMs); return isEquals; } @Override public int hashCode() { return Objects.hash(deploymentId, message, recheckAfterMs); } }
5,327
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/CertificateUpdateEvent.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import java.util.function.Consumer; import java.util.function.Predicate; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class CertificateUpdateEvent implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#CertificateUpdateEvent"; private transient UnionMember setUnionMember; @Expose( serialize = true, deserialize = true ) private Optional<CertificateUpdate> certificateUpdate; public CertificateUpdateEvent() { this.certificateUpdate = Optional.empty(); } public CertificateUpdate getCertificateUpdate() { if (certificateUpdate.isPresent() && (setUnionMember == UnionMember.CERTIFICATE_UPDATE)) { return certificateUpdate.get(); } return null; } public void setCertificateUpdate(final CertificateUpdate certificateUpdate) { if (setUnionMember != null) { setUnionMember.nullify(this); } this.certificateUpdate = Optional.of(certificateUpdate); this.setUnionMember = UnionMember.CERTIFICATE_UPDATE; } public CertificateUpdateEvent withCertificateUpdate(final CertificateUpdate certificateUpdate) { setCertificateUpdate(certificateUpdate); return this; } /** * Returns an indicator for which enum member is set. Can be used to convert to proper type. */ public UnionMember getSetUnionMember() { return setUnionMember; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } public void selfDesignateSetUnionMember() { int setCount = 0; UnionMember[] members = UnionMember.values(); for (int memberIdx = 0; memberIdx < UnionMember.values().length; ++memberIdx) { if (members[memberIdx].isPresent(this)) { ++setCount; this.setUnionMember = members[memberIdx]; } } // only bad outcome here is if there's more than one member set. It's possible for none to be set if (setCount > 1) { throw new IllegalArgumentException("More than one union member set for type: " + getApplicationModelType()); } } @Override public void postFromJson() { selfDesignateSetUnionMember(); } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof CertificateUpdateEvent)) return false; if (this == rhs) return true; final CertificateUpdateEvent other = (CertificateUpdateEvent)rhs; boolean isEquals = true; isEquals = isEquals && this.certificateUpdate.equals(other.certificateUpdate); isEquals = isEquals && this.setUnionMember.equals(other.setUnionMember); return isEquals; } @Override public int hashCode() { return Objects.hash(certificateUpdate, setUnionMember); } public enum UnionMember { CERTIFICATE_UPDATE("CERTIFICATE_UPDATE", (software.amazon.awssdk.aws.greengrass.model.CertificateUpdateEvent obj) -> obj.certificateUpdate = Optional.empty(), (software.amazon.awssdk.aws.greengrass.model.CertificateUpdateEvent obj) -> obj.certificateUpdate != null && obj.certificateUpdate.isPresent()); private String fieldName; private Consumer<CertificateUpdateEvent> nullifier; private Predicate<CertificateUpdateEvent> isPresent; UnionMember(String fieldName, Consumer<CertificateUpdateEvent> nullifier, Predicate<CertificateUpdateEvent> isPresent) { this.fieldName = fieldName; this.nullifier = nullifier; this.isPresent = isPresent; } void nullify(CertificateUpdateEvent obj) { nullifier.accept(obj); } boolean isPresent(CertificateUpdateEvent obj) { return isPresent.test(obj); } } }
5,328
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/UnauthorizedError.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class UnauthorizedError extends GreengrassCoreIPCError implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#UnauthorizedError"; public static final UnauthorizedError VOID; static { VOID = new UnauthorizedError() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<String> message; public UnauthorizedError(String errorMessage) { super("UnauthorizedError", errorMessage); this.message = Optional.ofNullable(errorMessage); } public UnauthorizedError() { super("UnauthorizedError", ""); this.message = Optional.empty(); } @Override public String getErrorTypeString() { return "client"; } public String getMessage() { if (message.isPresent()) { return message.get(); } return null; } public void setMessage(final String message) { this.message = Optional.ofNullable(message); } public UnauthorizedError withMessage(final String message) { setMessage(message); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof UnauthorizedError)) return false; if (this == rhs) return true; final UnauthorizedError other = (UnauthorizedError)rhs; boolean isEquals = true; isEquals = isEquals && this.message.equals(other.message); return isEquals; } @Override public int hashCode() { return Objects.hash(message); } }
5,329
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/DetailedDeploymentStatus.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.SerializedName; import java.lang.Override; import java.lang.String; import java.util.HashMap; import java.util.Map; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public enum DetailedDeploymentStatus implements EventStreamJsonMessage { @SerializedName("SUCCESSFUL") SUCCESSFUL("SUCCESSFUL"), @SerializedName("FAILED_NO_STATE_CHANGE") FAILED_NO_STATE_CHANGE("FAILED_NO_STATE_CHANGE"), @SerializedName("FAILED_ROLLBACK_NOT_REQUESTED") FAILED_ROLLBACK_NOT_REQUESTED("FAILED_ROLLBACK_NOT_REQUESTED"), @SerializedName("FAILED_ROLLBACK_COMPLETE") FAILED_ROLLBACK_COMPLETE("FAILED_ROLLBACK_COMPLETE"), @SerializedName("REJECTED") REJECTED("REJECTED"); public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#DetailedDeploymentStatus"; private static final Map<String, DetailedDeploymentStatus> lookup = new HashMap<String, DetailedDeploymentStatus>(); static { for (DetailedDeploymentStatus value:DetailedDeploymentStatus.values()) { lookup.put(value.getValue(), value); } } String value; DetailedDeploymentStatus(String value) { this.value = value; } public String getValue() { return value; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } public static DetailedDeploymentStatus get(String value) { return lookup.get(value); } }
5,330
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/PayloadFormat.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.SerializedName; import java.lang.Override; import java.lang.String; import java.util.HashMap; import java.util.Map; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public enum PayloadFormat implements EventStreamJsonMessage { @SerializedName("0") BYTES("0"), @SerializedName("1") UTF8("1"); public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#PayloadFormat"; private static final Map<String, PayloadFormat> lookup = new HashMap<String, PayloadFormat>(); static { for (PayloadFormat value:PayloadFormat.values()) { lookup.put(value.getValue(), value); } } String value; PayloadFormat(String value) { this.value = value; } public String getValue() { return value; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } public static PayloadFormat get(String value) { return lookup.get(value); } }
5,331
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/CreateDebugPasswordResponse.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.time.Instant; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class CreateDebugPasswordResponse implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#CreateDebugPasswordResponse"; public static final CreateDebugPasswordResponse VOID; static { VOID = new CreateDebugPasswordResponse() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<String> password; @Expose( serialize = true, deserialize = true ) private Optional<String> username; @Expose( serialize = true, deserialize = true ) private Optional<Instant> passwordExpiration; @Expose( serialize = true, deserialize = true ) private Optional<String> certificateSHA256Hash; @Expose( serialize = true, deserialize = true ) private Optional<String> certificateSHA1Hash; public CreateDebugPasswordResponse() { this.password = Optional.empty(); this.username = Optional.empty(); this.passwordExpiration = Optional.empty(); this.certificateSHA256Hash = Optional.empty(); this.certificateSHA1Hash = Optional.empty(); } public String getPassword() { if (password.isPresent()) { return password.get(); } return null; } public void setPassword(final String password) { this.password = Optional.ofNullable(password); } public CreateDebugPasswordResponse withPassword(final String password) { setPassword(password); return this; } public String getUsername() { if (username.isPresent()) { return username.get(); } return null; } public void setUsername(final String username) { this.username = Optional.ofNullable(username); } public CreateDebugPasswordResponse withUsername(final String username) { setUsername(username); return this; } public Instant getPasswordExpiration() { if (passwordExpiration.isPresent()) { return passwordExpiration.get(); } return null; } public void setPasswordExpiration(final Instant passwordExpiration) { this.passwordExpiration = Optional.ofNullable(passwordExpiration); } public CreateDebugPasswordResponse withPasswordExpiration(final Instant passwordExpiration) { setPasswordExpiration(passwordExpiration); return this; } public String getCertificateSHA256Hash() { if (certificateSHA256Hash.isPresent()) { return certificateSHA256Hash.get(); } return null; } public void setCertificateSHA256Hash(final String certificateSHA256Hash) { this.certificateSHA256Hash = Optional.ofNullable(certificateSHA256Hash); } public CreateDebugPasswordResponse withCertificateSHA256Hash(final String certificateSHA256Hash) { setCertificateSHA256Hash(certificateSHA256Hash); return this; } public String getCertificateSHA1Hash() { if (certificateSHA1Hash.isPresent()) { return certificateSHA1Hash.get(); } return null; } public void setCertificateSHA1Hash(final String certificateSHA1Hash) { this.certificateSHA1Hash = Optional.ofNullable(certificateSHA1Hash); } public CreateDebugPasswordResponse withCertificateSHA1Hash(final String certificateSHA1Hash) { setCertificateSHA1Hash(certificateSHA1Hash); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof CreateDebugPasswordResponse)) return false; if (this == rhs) return true; final CreateDebugPasswordResponse other = (CreateDebugPasswordResponse)rhs; boolean isEquals = true; isEquals = isEquals && this.password.equals(other.password); isEquals = isEquals && this.username.equals(other.username); isEquals = isEquals && this.passwordExpiration.equals(other.passwordExpiration); isEquals = isEquals && this.certificateSHA256Hash.equals(other.certificateSHA256Hash); isEquals = isEquals && this.certificateSHA1Hash.equals(other.certificateSHA1Hash); return isEquals; } @Override public int hashCode() { return Objects.hash(password, username, passwordExpiration, certificateSHA256Hash, certificateSHA1Hash); } }
5,332
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/SubscribeToValidateConfigurationUpdatesResponse.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class SubscribeToValidateConfigurationUpdatesResponse implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#SubscribeToValidateConfigurationUpdatesResponse"; public static final SubscribeToValidateConfigurationUpdatesResponse VOID; static { VOID = new SubscribeToValidateConfigurationUpdatesResponse() { @Override public boolean isVoid() { return true; } }; } public SubscribeToValidateConfigurationUpdatesResponse() { } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof SubscribeToValidateConfigurationUpdatesResponse)) return false; if (this == rhs) return true; final SubscribeToValidateConfigurationUpdatesResponse other = (SubscribeToValidateConfigurationUpdatesResponse)rhs; boolean isEquals = true; return isEquals; } @Override public int hashCode() { return Objects.hash(); } }
5,333
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/DeploymentStatus.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.SerializedName; import java.lang.Override; import java.lang.String; import java.util.HashMap; import java.util.Map; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public enum DeploymentStatus implements EventStreamJsonMessage { @SerializedName("QUEUED") QUEUED("QUEUED"), @SerializedName("IN_PROGRESS") IN_PROGRESS("IN_PROGRESS"), @SerializedName("SUCCEEDED") SUCCEEDED("SUCCEEDED"), @SerializedName("FAILED") FAILED("FAILED"), @SerializedName("CANCELED") CANCELED("CANCELED"); public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#DeploymentStatus"; private static final Map<String, DeploymentStatus> lookup = new HashMap<String, DeploymentStatus>(); static { for (DeploymentStatus value:DeploymentStatus.values()) { lookup.put(value.getValue(), value); } } String value; DeploymentStatus(String value) { this.value = value; } public String getValue() { return value; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } public static DeploymentStatus get(String value) { return lookup.get(value); } }
5,334
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/GetLocalDeploymentStatusResponse.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class GetLocalDeploymentStatusResponse implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#GetLocalDeploymentStatusResponse"; public static final GetLocalDeploymentStatusResponse VOID; static { VOID = new GetLocalDeploymentStatusResponse() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<LocalDeployment> deployment; public GetLocalDeploymentStatusResponse() { this.deployment = Optional.empty(); } /** * The local deployment. */ public LocalDeployment getDeployment() { if (deployment.isPresent()) { return deployment.get(); } return null; } /** * The local deployment. */ public void setDeployment(final LocalDeployment deployment) { this.deployment = Optional.ofNullable(deployment); } /** * The local deployment. */ public GetLocalDeploymentStatusResponse withDeployment(final LocalDeployment deployment) { setDeployment(deployment); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof GetLocalDeploymentStatusResponse)) return false; if (this == rhs) return true; final GetLocalDeploymentStatusResponse other = (GetLocalDeploymentStatusResponse)rhs; boolean isEquals = true; isEquals = isEquals && this.deployment.equals(other.deployment); return isEquals; } @Override public int hashCode() { return Objects.hash(deployment); } }
5,335
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/IoTCoreMessage.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import java.util.function.Consumer; import java.util.function.Predicate; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class IoTCoreMessage implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#IoTCoreMessage"; private transient UnionMember setUnionMember; @Expose( serialize = true, deserialize = true ) private Optional<MQTTMessage> message; public IoTCoreMessage() { this.message = Optional.empty(); } public MQTTMessage getMessage() { if (message.isPresent() && (setUnionMember == UnionMember.MESSAGE)) { return message.get(); } return null; } public void setMessage(final MQTTMessage message) { if (setUnionMember != null) { setUnionMember.nullify(this); } this.message = Optional.of(message); this.setUnionMember = UnionMember.MESSAGE; } public IoTCoreMessage withMessage(final MQTTMessage message) { setMessage(message); return this; } /** * Returns an indicator for which enum member is set. Can be used to convert to proper type. */ public UnionMember getSetUnionMember() { return setUnionMember; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } public void selfDesignateSetUnionMember() { int setCount = 0; UnionMember[] members = UnionMember.values(); for (int memberIdx = 0; memberIdx < UnionMember.values().length; ++memberIdx) { if (members[memberIdx].isPresent(this)) { ++setCount; this.setUnionMember = members[memberIdx]; } } // only bad outcome here is if there's more than one member set. It's possible for none to be set if (setCount > 1) { throw new IllegalArgumentException("More than one union member set for type: " + getApplicationModelType()); } } @Override public void postFromJson() { selfDesignateSetUnionMember(); } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof IoTCoreMessage)) return false; if (this == rhs) return true; final IoTCoreMessage other = (IoTCoreMessage)rhs; boolean isEquals = true; isEquals = isEquals && this.message.equals(other.message); isEquals = isEquals && this.setUnionMember.equals(other.setUnionMember); return isEquals; } @Override public int hashCode() { return Objects.hash(message, setUnionMember); } public enum UnionMember { MESSAGE("MESSAGE", (software.amazon.awssdk.aws.greengrass.model.IoTCoreMessage obj) -> obj.message = Optional.empty(), (software.amazon.awssdk.aws.greengrass.model.IoTCoreMessage obj) -> obj.message != null && obj.message.isPresent()); private String fieldName; private Consumer<IoTCoreMessage> nullifier; private Predicate<IoTCoreMessage> isPresent; UnionMember(String fieldName, Consumer<IoTCoreMessage> nullifier, Predicate<IoTCoreMessage> isPresent) { this.fieldName = fieldName; this.nullifier = nullifier; this.isPresent = isPresent; } void nullify(IoTCoreMessage obj) { nullifier.accept(obj); } boolean isPresent(IoTCoreMessage obj) { return isPresent.test(obj); } } }
5,336
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/UpdateConfigurationRequest.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.time.Instant; import java.util.List; import java.util.Map; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class UpdateConfigurationRequest implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#UpdateConfigurationRequest"; public static final UpdateConfigurationRequest VOID; static { VOID = new UpdateConfigurationRequest() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<List<String>> keyPath; @Expose( serialize = true, deserialize = true ) private Optional<Instant> timestamp; @Expose( serialize = true, deserialize = true ) private Optional<Map<String, Object>> valueToMerge; public UpdateConfigurationRequest() { this.keyPath = Optional.empty(); this.timestamp = Optional.empty(); this.valueToMerge = Optional.empty(); } /** * (Optional) The key path to the container node (the object) to update. Specify a list where each entry is the key for a single level in the configuration object. Defaults to the root of the configuration object. */ public List<String> getKeyPath() { if (keyPath.isPresent()) { return keyPath.get(); } return null; } /** * (Optional) The key path to the container node (the object) to update. Specify a list where each entry is the key for a single level in the configuration object. Defaults to the root of the configuration object. */ public void setKeyPath(final List<String> keyPath) { this.keyPath = Optional.ofNullable(keyPath); } /** * (Optional) The key path to the container node (the object) to update. Specify a list where each entry is the key for a single level in the configuration object. Defaults to the root of the configuration object. */ public UpdateConfigurationRequest withKeyPath(final List<String> keyPath) { setKeyPath(keyPath); return this; } /** * The current Unix epoch time in milliseconds. This operation uses this timestamp to resolve concurrent updates to the key. If the key in the component configuration has a greater timestamp than the timestamp in the request, then the request fails. */ public Instant getTimestamp() { if (timestamp.isPresent()) { return timestamp.get(); } return null; } /** * The current Unix epoch time in milliseconds. This operation uses this timestamp to resolve concurrent updates to the key. If the key in the component configuration has a greater timestamp than the timestamp in the request, then the request fails. */ public void setTimestamp(final Instant timestamp) { this.timestamp = Optional.ofNullable(timestamp); } /** * The current Unix epoch time in milliseconds. This operation uses this timestamp to resolve concurrent updates to the key. If the key in the component configuration has a greater timestamp than the timestamp in the request, then the request fails. */ public UpdateConfigurationRequest withTimestamp(final Instant timestamp) { setTimestamp(timestamp); return this; } /** * The configuration object to merge at the location that you specify in keyPath. */ public Map<String, Object> getValueToMerge() { if (valueToMerge.isPresent()) { return valueToMerge.get(); } return null; } /** * The configuration object to merge at the location that you specify in keyPath. */ public void setValueToMerge(final Map<String, Object> valueToMerge) { this.valueToMerge = Optional.ofNullable(valueToMerge); } /** * The configuration object to merge at the location that you specify in keyPath. */ public UpdateConfigurationRequest withValueToMerge(final Map<String, Object> valueToMerge) { setValueToMerge(valueToMerge); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof UpdateConfigurationRequest)) return false; if (this == rhs) return true; final UpdateConfigurationRequest other = (UpdateConfigurationRequest)rhs; boolean isEquals = true; isEquals = isEquals && this.keyPath.equals(other.keyPath); isEquals = isEquals && this.timestamp.equals(other.timestamp); isEquals = isEquals && this.valueToMerge.equals(other.valueToMerge); return isEquals; } @Override public int hashCode() { return Objects.hash(keyPath, timestamp, valueToMerge); } }
5,337
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/GetSecretValueResponse.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.List; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class GetSecretValueResponse implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#GetSecretValueResponse"; public static final GetSecretValueResponse VOID; static { VOID = new GetSecretValueResponse() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<String> secretId; @Expose( serialize = true, deserialize = true ) private Optional<String> versionId; @Expose( serialize = true, deserialize = true ) private Optional<List<String>> versionStage; @Expose( serialize = true, deserialize = true ) private Optional<SecretValue> secretValue; public GetSecretValueResponse() { this.secretId = Optional.empty(); this.versionId = Optional.empty(); this.versionStage = Optional.empty(); this.secretValue = Optional.empty(); } /** * The ID of the secret. */ public String getSecretId() { if (secretId.isPresent()) { return secretId.get(); } return null; } /** * The ID of the secret. */ public void setSecretId(final String secretId) { this.secretId = Optional.ofNullable(secretId); } /** * The ID of the secret. */ public GetSecretValueResponse withSecretId(final String secretId) { setSecretId(secretId); return this; } /** * The ID of this version of the secret. */ public String getVersionId() { if (versionId.isPresent()) { return versionId.get(); } return null; } /** * The ID of this version of the secret. */ public void setVersionId(final String versionId) { this.versionId = Optional.ofNullable(versionId); } /** * The ID of this version of the secret. */ public GetSecretValueResponse withVersionId(final String versionId) { setVersionId(versionId); return this; } /** * The list of staging labels attached to this version of the secret. */ public List<String> getVersionStage() { if (versionStage.isPresent()) { return versionStage.get(); } return null; } /** * The list of staging labels attached to this version of the secret. */ public void setVersionStage(final List<String> versionStage) { this.versionStage = Optional.ofNullable(versionStage); } /** * The list of staging labels attached to this version of the secret. */ public GetSecretValueResponse withVersionStage(final List<String> versionStage) { setVersionStage(versionStage); return this; } /** * The value of this version of the secret. */ public SecretValue getSecretValue() { if (secretValue.isPresent()) { return secretValue.get(); } return null; } /** * The value of this version of the secret. */ public void setSecretValue(final SecretValue secretValue) { this.secretValue = Optional.ofNullable(secretValue); } /** * The value of this version of the secret. */ public GetSecretValueResponse withSecretValue(final SecretValue secretValue) { setSecretValue(secretValue); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof GetSecretValueResponse)) return false; if (this == rhs) return true; final GetSecretValueResponse other = (GetSecretValueResponse)rhs; boolean isEquals = true; isEquals = isEquals && this.secretId.equals(other.secretId); isEquals = isEquals && this.versionId.equals(other.versionId); isEquals = isEquals && this.versionStage.equals(other.versionStage); isEquals = isEquals && this.secretValue.equals(other.secretValue); return isEquals; } @Override public int hashCode() { return Objects.hash(secretId, versionId, versionStage, secretValue); } }
5,338
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/PutComponentMetricResponse.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class PutComponentMetricResponse implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#PutComponentMetricResponse"; public static final PutComponentMetricResponse VOID; static { VOID = new PutComponentMetricResponse() { @Override public boolean isVoid() { return true; } }; } public PutComponentMetricResponse() { } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof PutComponentMetricResponse)) return false; if (this == rhs) return true; final PutComponentMetricResponse other = (PutComponentMetricResponse)rhs; boolean isEquals = true; return isEquals; } @Override public int hashCode() { return Objects.hash(); } }
5,339
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/MQTTCredential.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class MQTTCredential implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#MQTTCredential"; public static final MQTTCredential VOID; static { VOID = new MQTTCredential() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<String> clientId; @Expose( serialize = true, deserialize = true ) private Optional<String> certificatePem; @Expose( serialize = true, deserialize = true ) private Optional<String> username; @Expose( serialize = true, deserialize = true ) private Optional<String> password; public MQTTCredential() { this.clientId = Optional.empty(); this.certificatePem = Optional.empty(); this.username = Optional.empty(); this.password = Optional.empty(); } /** * The client ID to used to connect. */ public String getClientId() { if (clientId.isPresent()) { return clientId.get(); } return null; } /** * The client ID to used to connect. */ public void setClientId(final String clientId) { this.clientId = Optional.ofNullable(clientId); } /** * The client ID to used to connect. */ public MQTTCredential withClientId(final String clientId) { setClientId(clientId); return this; } /** * The client certificate in pem format. */ public String getCertificatePem() { if (certificatePem.isPresent()) { return certificatePem.get(); } return null; } /** * The client certificate in pem format. */ public void setCertificatePem(final String certificatePem) { this.certificatePem = Optional.ofNullable(certificatePem); } /** * The client certificate in pem format. */ public MQTTCredential withCertificatePem(final String certificatePem) { setCertificatePem(certificatePem); return this; } /** * The username. (unused). */ public String getUsername() { if (username.isPresent()) { return username.get(); } return null; } /** * The username. (unused). */ public void setUsername(final String username) { this.username = Optional.ofNullable(username); } /** * The username. (unused). */ public MQTTCredential withUsername(final String username) { setUsername(username); return this; } /** * The password. (unused). */ public String getPassword() { if (password.isPresent()) { return password.get(); } return null; } /** * The password. (unused). */ public void setPassword(final String password) { this.password = Optional.ofNullable(password); } /** * The password. (unused). */ public MQTTCredential withPassword(final String password) { setPassword(password); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof MQTTCredential)) return false; if (this == rhs) return true; final MQTTCredential other = (MQTTCredential)rhs; boolean isEquals = true; isEquals = isEquals && this.clientId.equals(other.clientId); isEquals = isEquals && this.certificatePem.equals(other.certificatePem); isEquals = isEquals && this.username.equals(other.username); isEquals = isEquals && this.password.equals(other.password); return isEquals; } @Override public int hashCode() { return Objects.hash(clientId, certificatePem, username, password); } }
5,340
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/ComponentNotFoundError.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class ComponentNotFoundError extends GreengrassCoreIPCError implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#ComponentNotFoundError"; public static final ComponentNotFoundError VOID; static { VOID = new ComponentNotFoundError() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<String> message; public ComponentNotFoundError(String errorMessage) { super("ComponentNotFoundError", errorMessage); this.message = Optional.ofNullable(errorMessage); } public ComponentNotFoundError() { super("ComponentNotFoundError", ""); this.message = Optional.empty(); } @Override public String getErrorTypeString() { return "client"; } public String getMessage() { if (message.isPresent()) { return message.get(); } return null; } public void setMessage(final String message) { this.message = Optional.ofNullable(message); } public ComponentNotFoundError withMessage(final String message) { setMessage(message); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof ComponentNotFoundError)) return false; if (this == rhs) return true; final ComponentNotFoundError other = (ComponentNotFoundError)rhs; boolean isEquals = true; isEquals = isEquals && this.message.equals(other.message); return isEquals; } @Override public int hashCode() { return Objects.hash(message); } }
5,341
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/SubscriptionResponseMessage.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import java.util.function.Consumer; import java.util.function.Predicate; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class SubscriptionResponseMessage implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#SubscriptionResponseMessage"; private transient UnionMember setUnionMember; @Expose( serialize = true, deserialize = true ) private Optional<JsonMessage> jsonMessage; @Expose( serialize = true, deserialize = true ) private Optional<BinaryMessage> binaryMessage; public SubscriptionResponseMessage() { this.jsonMessage = Optional.empty(); this.binaryMessage = Optional.empty(); } public JsonMessage getJsonMessage() { if (jsonMessage.isPresent() && (setUnionMember == UnionMember.JSON_MESSAGE)) { return jsonMessage.get(); } return null; } public void setJsonMessage(final JsonMessage jsonMessage) { if (setUnionMember != null) { setUnionMember.nullify(this); } this.jsonMessage = Optional.of(jsonMessage); this.setUnionMember = UnionMember.JSON_MESSAGE; } public SubscriptionResponseMessage withJsonMessage(final JsonMessage jsonMessage) { setJsonMessage(jsonMessage); return this; } public BinaryMessage getBinaryMessage() { if (binaryMessage.isPresent() && (setUnionMember == UnionMember.BINARY_MESSAGE)) { return binaryMessage.get(); } return null; } public void setBinaryMessage(final BinaryMessage binaryMessage) { if (setUnionMember != null) { setUnionMember.nullify(this); } this.binaryMessage = Optional.of(binaryMessage); this.setUnionMember = UnionMember.BINARY_MESSAGE; } public SubscriptionResponseMessage withBinaryMessage(final BinaryMessage binaryMessage) { setBinaryMessage(binaryMessage); return this; } /** * Returns an indicator for which enum member is set. Can be used to convert to proper type. */ public UnionMember getSetUnionMember() { return setUnionMember; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } public void selfDesignateSetUnionMember() { int setCount = 0; UnionMember[] members = UnionMember.values(); for (int memberIdx = 0; memberIdx < UnionMember.values().length; ++memberIdx) { if (members[memberIdx].isPresent(this)) { ++setCount; this.setUnionMember = members[memberIdx]; } } // only bad outcome here is if there's more than one member set. It's possible for none to be set if (setCount > 1) { throw new IllegalArgumentException("More than one union member set for type: " + getApplicationModelType()); } } @Override public void postFromJson() { selfDesignateSetUnionMember(); } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof SubscriptionResponseMessage)) return false; if (this == rhs) return true; final SubscriptionResponseMessage other = (SubscriptionResponseMessage)rhs; boolean isEquals = true; isEquals = isEquals && this.jsonMessage.equals(other.jsonMessage); isEquals = isEquals && this.binaryMessage.equals(other.binaryMessage); isEquals = isEquals && this.setUnionMember.equals(other.setUnionMember); return isEquals; } @Override public int hashCode() { return Objects.hash(jsonMessage, binaryMessage, setUnionMember); } public enum UnionMember { JSON_MESSAGE("JSON_MESSAGE", (software.amazon.awssdk.aws.greengrass.model.SubscriptionResponseMessage obj) -> obj.jsonMessage = Optional.empty(), (software.amazon.awssdk.aws.greengrass.model.SubscriptionResponseMessage obj) -> obj.jsonMessage != null && obj.jsonMessage.isPresent()), BINARY_MESSAGE("BINARY_MESSAGE", (software.amazon.awssdk.aws.greengrass.model.SubscriptionResponseMessage obj) -> obj.binaryMessage = Optional.empty(), (software.amazon.awssdk.aws.greengrass.model.SubscriptionResponseMessage obj) -> obj.binaryMessage != null && obj.binaryMessage.isPresent()); private String fieldName; private Consumer<SubscriptionResponseMessage> nullifier; private Predicate<SubscriptionResponseMessage> isPresent; UnionMember(String fieldName, Consumer<SubscriptionResponseMessage> nullifier, Predicate<SubscriptionResponseMessage> isPresent) { this.fieldName = fieldName; this.nullifier = nullifier; this.isPresent = isPresent; } void nullify(SubscriptionResponseMessage obj) { nullifier.accept(obj); } boolean isPresent(SubscriptionResponseMessage obj) { return isPresent.test(obj); } } }
5,342
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/VerifyClientDeviceIdentityResponse.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Boolean; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class VerifyClientDeviceIdentityResponse implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#VerifyClientDeviceIdentityResponse"; public static final VerifyClientDeviceIdentityResponse VOID; static { VOID = new VerifyClientDeviceIdentityResponse() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<Boolean> isValidClientDevice; public VerifyClientDeviceIdentityResponse() { this.isValidClientDevice = Optional.empty(); } /** * Whether the client device's identity is valid. */ public Boolean isIsValidClientDevice() { if (isValidClientDevice.isPresent()) { return isValidClientDevice.get(); } return null; } /** * Whether the client device's identity is valid. */ public void setIsValidClientDevice(final Boolean isValidClientDevice) { this.isValidClientDevice = Optional.ofNullable(isValidClientDevice); } /** * Whether the client device's identity is valid. */ public VerifyClientDeviceIdentityResponse withIsValidClientDevice( final Boolean isValidClientDevice) { setIsValidClientDevice(isValidClientDevice); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof VerifyClientDeviceIdentityResponse)) return false; if (this == rhs) return true; final VerifyClientDeviceIdentityResponse other = (VerifyClientDeviceIdentityResponse)rhs; boolean isEquals = true; isEquals = isEquals && this.isValidClientDevice.equals(other.isValidClientDevice); return isEquals; } @Override public int hashCode() { return Objects.hash(isValidClientDevice); } }
5,343
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/ListNamedShadowsForThingResponse.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.time.Instant; import java.util.List; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class ListNamedShadowsForThingResponse implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#ListNamedShadowsForThingResponse"; public static final ListNamedShadowsForThingResponse VOID; static { VOID = new ListNamedShadowsForThingResponse() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<List<String>> results; @Expose( serialize = true, deserialize = true ) private Optional<Instant> timestamp; @Expose( serialize = true, deserialize = true ) private Optional<String> nextToken; public ListNamedShadowsForThingResponse() { this.results = Optional.empty(); this.timestamp = Optional.empty(); this.nextToken = Optional.empty(); } /** * The list of shadow names. */ public List<String> getResults() { if (results.isPresent()) { return results.get(); } return null; } /** * The list of shadow names. */ public void setResults(final List<String> results) { this.results = Optional.ofNullable(results); } /** * The list of shadow names. */ public ListNamedShadowsForThingResponse withResults(final List<String> results) { setResults(results); return this; } /** * (Optional) The date and time that the response was generated. */ public Instant getTimestamp() { if (timestamp.isPresent()) { return timestamp.get(); } return null; } /** * (Optional) The date and time that the response was generated. */ public void setTimestamp(final Instant timestamp) { this.timestamp = Optional.ofNullable(timestamp); } /** * (Optional) The date and time that the response was generated. */ public ListNamedShadowsForThingResponse withTimestamp(final Instant timestamp) { setTimestamp(timestamp); return this; } /** * (Optional) The token value to use in paged requests to retrieve the next page in the sequence. This token isn't present when there are no more shadow names to return. */ public String getNextToken() { if (nextToken.isPresent()) { return nextToken.get(); } return null; } /** * (Optional) The token value to use in paged requests to retrieve the next page in the sequence. This token isn't present when there are no more shadow names to return. */ public void setNextToken(final String nextToken) { this.nextToken = Optional.ofNullable(nextToken); } /** * (Optional) The token value to use in paged requests to retrieve the next page in the sequence. This token isn't present when there are no more shadow names to return. */ public ListNamedShadowsForThingResponse withNextToken(final String nextToken) { setNextToken(nextToken); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof ListNamedShadowsForThingResponse)) return false; if (this == rhs) return true; final ListNamedShadowsForThingResponse other = (ListNamedShadowsForThingResponse)rhs; boolean isEquals = true; isEquals = isEquals && this.results.equals(other.results); isEquals = isEquals && this.timestamp.equals(other.timestamp); isEquals = isEquals && this.nextToken.equals(other.nextToken); return isEquals; } @Override public int hashCode() { return Objects.hash(results, timestamp, nextToken); } }
5,344
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/SubscribeToComponentUpdatesRequest.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class SubscribeToComponentUpdatesRequest implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#SubscribeToComponentUpdatesRequest"; public static final SubscribeToComponentUpdatesRequest VOID; static { VOID = new SubscribeToComponentUpdatesRequest() { @Override public boolean isVoid() { return true; } }; } public SubscribeToComponentUpdatesRequest() { } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof SubscribeToComponentUpdatesRequest)) return false; if (this == rhs) return true; final SubscribeToComponentUpdatesRequest other = (SubscribeToComponentUpdatesRequest)rhs; boolean isEquals = true; return isEquals; } @Override public int hashCode() { return Objects.hash(); } }
5,345
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/ServiceError.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Map; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class ServiceError extends GreengrassCoreIPCError implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#ServiceError"; public static final ServiceError VOID; static { VOID = new ServiceError() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<String> message; @Expose( serialize = true, deserialize = true ) private Optional<Map<String, Object>> context; public ServiceError(String errorMessage) { super("ServiceError", errorMessage); this.message = Optional.ofNullable(errorMessage); this.context = Optional.empty(); } public ServiceError() { super("ServiceError", ""); this.message = Optional.empty(); this.context = Optional.empty(); } @Override public String getErrorTypeString() { return "server"; } public String getMessage() { if (message.isPresent()) { return message.get(); } return null; } public void setMessage(final String message) { this.message = Optional.ofNullable(message); } public ServiceError withMessage(final String message) { setMessage(message); return this; } public Map<String, Object> getContext() { if (context.isPresent()) { return context.get(); } return null; } public void setContext(final Map<String, Object> context) { this.context = Optional.ofNullable(context); } public ServiceError withContext(final Map<String, Object> context) { setContext(context); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof ServiceError)) return false; if (this == rhs) return true; final ServiceError other = (ServiceError)rhs; boolean isEquals = true; isEquals = isEquals && this.message.equals(other.message); isEquals = isEquals && this.context.equals(other.context); return isEquals; } @Override public int hashCode() { return Objects.hash(message, context); } }
5,346
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/CancelLocalDeploymentRequest.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class CancelLocalDeploymentRequest implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#CancelLocalDeploymentRequest"; public static final CancelLocalDeploymentRequest VOID; static { VOID = new CancelLocalDeploymentRequest() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<String> deploymentId; public CancelLocalDeploymentRequest() { this.deploymentId = Optional.empty(); } /** * (Optional) The ID of the local deployment to cancel. */ public String getDeploymentId() { if (deploymentId.isPresent()) { return deploymentId.get(); } return null; } /** * (Optional) The ID of the local deployment to cancel. */ public void setDeploymentId(final String deploymentId) { this.deploymentId = Optional.ofNullable(deploymentId); } /** * (Optional) The ID of the local deployment to cancel. */ public CancelLocalDeploymentRequest withDeploymentId(final String deploymentId) { setDeploymentId(deploymentId); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof CancelLocalDeploymentRequest)) return false; if (this == rhs) return true; final CancelLocalDeploymentRequest other = (CancelLocalDeploymentRequest)rhs; boolean isEquals = true; isEquals = isEquals && this.deploymentId.equals(other.deploymentId); return isEquals; } @Override public int hashCode() { return Objects.hash(deploymentId); } }
5,347
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/GetThingShadowRequest.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class GetThingShadowRequest implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#GetThingShadowRequest"; public static final GetThingShadowRequest VOID; static { VOID = new GetThingShadowRequest() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<String> thingName; @Expose( serialize = true, deserialize = true ) private Optional<String> shadowName; public GetThingShadowRequest() { this.thingName = Optional.empty(); this.shadowName = Optional.empty(); } /** * The name of the thing. */ public String getThingName() { if (thingName.isPresent()) { return thingName.get(); } return null; } /** * The name of the thing. */ public void setThingName(final String thingName) { this.thingName = Optional.ofNullable(thingName); } /** * The name of the thing. */ public GetThingShadowRequest withThingName(final String thingName) { setThingName(thingName); return this; } /** * The name of the shadow. To specify the thing's classic shadow, set this parameter to an empty string (""). */ public String getShadowName() { if (shadowName.isPresent()) { return shadowName.get(); } return null; } /** * The name of the shadow. To specify the thing's classic shadow, set this parameter to an empty string (""). */ public void setShadowName(final String shadowName) { this.shadowName = Optional.ofNullable(shadowName); } /** * The name of the shadow. To specify the thing's classic shadow, set this parameter to an empty string (""). */ public GetThingShadowRequest withShadowName(final String shadowName) { setShadowName(shadowName); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof GetThingShadowRequest)) return false; if (this == rhs) return true; final GetThingShadowRequest other = (GetThingShadowRequest)rhs; boolean isEquals = true; isEquals = isEquals && this.thingName.equals(other.thingName); isEquals = isEquals && this.shadowName.equals(other.shadowName); return isEquals; } @Override public int hashCode() { return Objects.hash(thingName, shadowName); } }
5,348
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/SubscribeToCertificateUpdatesResponse.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class SubscribeToCertificateUpdatesResponse implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#SubscribeToCertificateUpdatesResponse"; public static final SubscribeToCertificateUpdatesResponse VOID; static { VOID = new SubscribeToCertificateUpdatesResponse() { @Override public boolean isVoid() { return true; } }; } public SubscribeToCertificateUpdatesResponse() { } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof SubscribeToCertificateUpdatesResponse)) return false; if (this == rhs) return true; final SubscribeToCertificateUpdatesResponse other = (SubscribeToCertificateUpdatesResponse)rhs; boolean isEquals = true; return isEquals; } @Override public int hashCode() { return Objects.hash(); } }
5,349
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/ResumeComponentRequest.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class ResumeComponentRequest implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#ResumeComponentRequest"; public static final ResumeComponentRequest VOID; static { VOID = new ResumeComponentRequest() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<String> componentName; public ResumeComponentRequest() { this.componentName = Optional.empty(); } /** * The name of the component to resume. */ public String getComponentName() { if (componentName.isPresent()) { return componentName.get(); } return null; } /** * The name of the component to resume. */ public void setComponentName(final String componentName) { this.componentName = Optional.ofNullable(componentName); } /** * The name of the component to resume. */ public ResumeComponentRequest withComponentName(final String componentName) { setComponentName(componentName); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof ResumeComponentRequest)) return false; if (this == rhs) return true; final ResumeComponentRequest other = (ResumeComponentRequest)rhs; boolean isEquals = true; isEquals = isEquals && this.componentName.equals(other.componentName); return isEquals; } @Override public int hashCode() { return Objects.hash(componentName); } }
5,350
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/ComponentUpdatePolicyEvents.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import java.util.function.Consumer; import java.util.function.Predicate; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class ComponentUpdatePolicyEvents implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#ComponentUpdatePolicyEvents"; private transient UnionMember setUnionMember; @Expose( serialize = true, deserialize = true ) private Optional<PreComponentUpdateEvent> preUpdateEvent; @Expose( serialize = true, deserialize = true ) private Optional<PostComponentUpdateEvent> postUpdateEvent; public ComponentUpdatePolicyEvents() { this.preUpdateEvent = Optional.empty(); this.postUpdateEvent = Optional.empty(); } public PreComponentUpdateEvent getPreUpdateEvent() { if (preUpdateEvent.isPresent() && (setUnionMember == UnionMember.PRE_UPDATE_EVENT)) { return preUpdateEvent.get(); } return null; } public void setPreUpdateEvent(final PreComponentUpdateEvent preUpdateEvent) { if (setUnionMember != null) { setUnionMember.nullify(this); } this.preUpdateEvent = Optional.of(preUpdateEvent); this.setUnionMember = UnionMember.PRE_UPDATE_EVENT; } public ComponentUpdatePolicyEvents withPreUpdateEvent( final PreComponentUpdateEvent preUpdateEvent) { setPreUpdateEvent(preUpdateEvent); return this; } public PostComponentUpdateEvent getPostUpdateEvent() { if (postUpdateEvent.isPresent() && (setUnionMember == UnionMember.POST_UPDATE_EVENT)) { return postUpdateEvent.get(); } return null; } public void setPostUpdateEvent(final PostComponentUpdateEvent postUpdateEvent) { if (setUnionMember != null) { setUnionMember.nullify(this); } this.postUpdateEvent = Optional.of(postUpdateEvent); this.setUnionMember = UnionMember.POST_UPDATE_EVENT; } public ComponentUpdatePolicyEvents withPostUpdateEvent( final PostComponentUpdateEvent postUpdateEvent) { setPostUpdateEvent(postUpdateEvent); return this; } /** * Returns an indicator for which enum member is set. Can be used to convert to proper type. */ public UnionMember getSetUnionMember() { return setUnionMember; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } public void selfDesignateSetUnionMember() { int setCount = 0; UnionMember[] members = UnionMember.values(); for (int memberIdx = 0; memberIdx < UnionMember.values().length; ++memberIdx) { if (members[memberIdx].isPresent(this)) { ++setCount; this.setUnionMember = members[memberIdx]; } } // only bad outcome here is if there's more than one member set. It's possible for none to be set if (setCount > 1) { throw new IllegalArgumentException("More than one union member set for type: " + getApplicationModelType()); } } @Override public void postFromJson() { selfDesignateSetUnionMember(); } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof ComponentUpdatePolicyEvents)) return false; if (this == rhs) return true; final ComponentUpdatePolicyEvents other = (ComponentUpdatePolicyEvents)rhs; boolean isEquals = true; isEquals = isEquals && this.preUpdateEvent.equals(other.preUpdateEvent); isEquals = isEquals && this.postUpdateEvent.equals(other.postUpdateEvent); isEquals = isEquals && this.setUnionMember.equals(other.setUnionMember); return isEquals; } @Override public int hashCode() { return Objects.hash(preUpdateEvent, postUpdateEvent, setUnionMember); } public enum UnionMember { PRE_UPDATE_EVENT("PRE_UPDATE_EVENT", (software.amazon.awssdk.aws.greengrass.model.ComponentUpdatePolicyEvents obj) -> obj.preUpdateEvent = Optional.empty(), (software.amazon.awssdk.aws.greengrass.model.ComponentUpdatePolicyEvents obj) -> obj.preUpdateEvent != null && obj.preUpdateEvent.isPresent()), POST_UPDATE_EVENT("POST_UPDATE_EVENT", (software.amazon.awssdk.aws.greengrass.model.ComponentUpdatePolicyEvents obj) -> obj.postUpdateEvent = Optional.empty(), (software.amazon.awssdk.aws.greengrass.model.ComponentUpdatePolicyEvents obj) -> obj.postUpdateEvent != null && obj.postUpdateEvent.isPresent()); private String fieldName; private Consumer<ComponentUpdatePolicyEvents> nullifier; private Predicate<ComponentUpdatePolicyEvents> isPresent; UnionMember(String fieldName, Consumer<ComponentUpdatePolicyEvents> nullifier, Predicate<ComponentUpdatePolicyEvents> isPresent) { this.fieldName = fieldName; this.nullifier = nullifier; this.isPresent = isPresent; } void nullify(ComponentUpdatePolicyEvents obj) { nullifier.accept(obj); } boolean isPresent(ComponentUpdatePolicyEvents obj) { return isPresent.test(obj); } } }
5,351
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/CreateDebugPasswordRequest.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class CreateDebugPasswordRequest implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#CreateDebugPasswordRequest"; public static final CreateDebugPasswordRequest VOID; static { VOID = new CreateDebugPasswordRequest() { @Override public boolean isVoid() { return true; } }; } public CreateDebugPasswordRequest() { } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof CreateDebugPasswordRequest)) return false; if (this == rhs) return true; final CreateDebugPasswordRequest other = (CreateDebugPasswordRequest)rhs; boolean isEquals = true; return isEquals; } @Override public int hashCode() { return Objects.hash(); } }
5,352
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/UpdateThingShadowResponse.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.EventStreamRPCServiceModel; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class UpdateThingShadowResponse implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#UpdateThingShadowResponse"; public static final UpdateThingShadowResponse VOID; static { VOID = new UpdateThingShadowResponse() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<byte[]> payload; public UpdateThingShadowResponse() { this.payload = Optional.empty(); } /** * The response state document as a JSON encoded blob. */ public byte[] getPayload() { if (payload.isPresent()) { return payload.get(); } return null; } /** * The response state document as a JSON encoded blob. */ public void setPayload(final byte[] payload) { this.payload = Optional.ofNullable(payload); } /** * The response state document as a JSON encoded blob. */ public UpdateThingShadowResponse withPayload(final byte[] payload) { setPayload(payload); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof UpdateThingShadowResponse)) return false; if (this == rhs) return true; final UpdateThingShadowResponse other = (UpdateThingShadowResponse)rhs; boolean isEquals = true; isEquals = isEquals && EventStreamRPCServiceModel.blobTypeEquals(this.payload, other.payload); return isEquals; } @Override public int hashCode() { return Objects.hash(payload); } }
5,353
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/PublishToIoTCoreRequest.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Boolean; import java.lang.Long; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.List; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.EventStreamRPCServiceModel; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class PublishToIoTCoreRequest implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#PublishToIoTCoreRequest"; public static final PublishToIoTCoreRequest VOID; static { VOID = new PublishToIoTCoreRequest() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<String> topicName; @Expose( serialize = true, deserialize = true ) private Optional<String> qos; @Expose( serialize = true, deserialize = true ) private Optional<byte[]> payload; @Expose( serialize = true, deserialize = true ) private Optional<Boolean> retain; @Expose( serialize = true, deserialize = true ) private Optional<List<UserProperty>> userProperties; @Expose( serialize = true, deserialize = true ) private Optional<Long> messageExpiryIntervalSeconds; @Expose( serialize = true, deserialize = true ) private Optional<byte[]> correlationData; @Expose( serialize = true, deserialize = true ) private Optional<String> responseTopic; @Expose( serialize = true, deserialize = true ) private Optional<String> payloadFormat; @Expose( serialize = true, deserialize = true ) private Optional<String> contentType; public PublishToIoTCoreRequest() { this.topicName = Optional.empty(); this.qos = Optional.empty(); this.payload = Optional.empty(); this.retain = Optional.empty(); this.userProperties = Optional.empty(); this.messageExpiryIntervalSeconds = Optional.empty(); this.correlationData = Optional.empty(); this.responseTopic = Optional.empty(); this.payloadFormat = Optional.empty(); this.contentType = Optional.empty(); } /** * The topic to which to publish the message. */ public String getTopicName() { if (topicName.isPresent()) { return topicName.get(); } return null; } /** * The topic to which to publish the message. */ public void setTopicName(final String topicName) { this.topicName = Optional.ofNullable(topicName); } /** * The topic to which to publish the message. */ public PublishToIoTCoreRequest withTopicName(final String topicName) { setTopicName(topicName); return this; } public QOS getQos() { if (qos.isPresent()) { return QOS.get(qos.get()); } return null; } /** * The MQTT QoS to use. */ public String getQosAsString() { if (qos.isPresent()) { return qos.get(); } return null; } /** * The MQTT QoS to use. */ public void setQos(final String qos) { this.qos = Optional.ofNullable(qos); } /** * The MQTT QoS to use. */ public PublishToIoTCoreRequest withQos(final String qos) { setQos(qos); return this; } /** * The MQTT QoS to use. */ public void setQos(final QOS qos) { this.qos = Optional.ofNullable(qos.getValue()); } /** * The MQTT QoS to use. */ public PublishToIoTCoreRequest withQos(final QOS qos) { setQos(qos); return this; } /** * (Optional) The message payload as a blob. */ public byte[] getPayload() { if (payload.isPresent()) { return payload.get(); } return null; } /** * (Optional) The message payload as a blob. */ public void setPayload(final byte[] payload) { this.payload = Optional.ofNullable(payload); } /** * (Optional) The message payload as a blob. */ public PublishToIoTCoreRequest withPayload(final byte[] payload) { setPayload(payload); return this; } /** * (Optional) Whether to set MQTT retain option to true when publishing. */ public Boolean isRetain() { if (retain.isPresent()) { return retain.get(); } return null; } /** * (Optional) Whether to set MQTT retain option to true when publishing. */ public void setRetain(final Boolean retain) { this.retain = Optional.ofNullable(retain); } /** * (Optional) Whether to set MQTT retain option to true when publishing. */ public PublishToIoTCoreRequest withRetain(final Boolean retain) { setRetain(retain); return this; } /** * (Optional) MQTT user properties associated with the message. */ public List<UserProperty> getUserProperties() { if (userProperties.isPresent()) { return userProperties.get(); } return null; } /** * (Optional) MQTT user properties associated with the message. */ public void setUserProperties(final List<UserProperty> userProperties) { this.userProperties = Optional.ofNullable(userProperties); } /** * (Optional) MQTT user properties associated with the message. */ public PublishToIoTCoreRequest withUserProperties(final List<UserProperty> userProperties) { setUserProperties(userProperties); return this; } /** * (Optional) Message expiry interval in seconds. */ public Long getMessageExpiryIntervalSeconds() { if (messageExpiryIntervalSeconds.isPresent()) { return messageExpiryIntervalSeconds.get(); } return null; } /** * (Optional) Message expiry interval in seconds. */ public void setMessageExpiryIntervalSeconds(final Long messageExpiryIntervalSeconds) { this.messageExpiryIntervalSeconds = Optional.ofNullable(messageExpiryIntervalSeconds); } /** * (Optional) Message expiry interval in seconds. */ public PublishToIoTCoreRequest withMessageExpiryIntervalSeconds( final Long messageExpiryIntervalSeconds) { setMessageExpiryIntervalSeconds(messageExpiryIntervalSeconds); return this; } /** * (Optional) Correlation data blob for request/response. */ public byte[] getCorrelationData() { if (correlationData.isPresent()) { return correlationData.get(); } return null; } /** * (Optional) Correlation data blob for request/response. */ public void setCorrelationData(final byte[] correlationData) { this.correlationData = Optional.ofNullable(correlationData); } /** * (Optional) Correlation data blob for request/response. */ public PublishToIoTCoreRequest withCorrelationData(final byte[] correlationData) { setCorrelationData(correlationData); return this; } /** * (Optional) Response topic for request/response. */ public String getResponseTopic() { if (responseTopic.isPresent()) { return responseTopic.get(); } return null; } /** * (Optional) Response topic for request/response. */ public void setResponseTopic(final String responseTopic) { this.responseTopic = Optional.ofNullable(responseTopic); } /** * (Optional) Response topic for request/response. */ public PublishToIoTCoreRequest withResponseTopic(final String responseTopic) { setResponseTopic(responseTopic); return this; } public PayloadFormat getPayloadFormat() { if (payloadFormat.isPresent()) { return PayloadFormat.get(payloadFormat.get()); } return null; } /** * (Optional) Message payload format. */ public String getPayloadFormatAsString() { if (payloadFormat.isPresent()) { return payloadFormat.get(); } return null; } /** * (Optional) Message payload format. */ public void setPayloadFormat(final String payloadFormat) { this.payloadFormat = Optional.ofNullable(payloadFormat); } /** * (Optional) Message payload format. */ public PublishToIoTCoreRequest withPayloadFormat(final String payloadFormat) { setPayloadFormat(payloadFormat); return this; } /** * (Optional) Message payload format. */ public void setPayloadFormat(final PayloadFormat payloadFormat) { this.payloadFormat = Optional.ofNullable(payloadFormat.getValue()); } /** * (Optional) Message payload format. */ public PublishToIoTCoreRequest withPayloadFormat(final PayloadFormat payloadFormat) { setPayloadFormat(payloadFormat); return this; } /** * (Optional) Message content type. */ public String getContentType() { if (contentType.isPresent()) { return contentType.get(); } return null; } /** * (Optional) Message content type. */ public void setContentType(final String contentType) { this.contentType = Optional.ofNullable(contentType); } /** * (Optional) Message content type. */ public PublishToIoTCoreRequest withContentType(final String contentType) { setContentType(contentType); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof PublishToIoTCoreRequest)) return false; if (this == rhs) return true; final PublishToIoTCoreRequest other = (PublishToIoTCoreRequest)rhs; boolean isEquals = true; isEquals = isEquals && this.topicName.equals(other.topicName); isEquals = isEquals && this.qos.equals(other.qos); isEquals = isEquals && EventStreamRPCServiceModel.blobTypeEquals(this.payload, other.payload); isEquals = isEquals && this.retain.equals(other.retain); isEquals = isEquals && this.userProperties.equals(other.userProperties); isEquals = isEquals && this.messageExpiryIntervalSeconds.equals(other.messageExpiryIntervalSeconds); isEquals = isEquals && EventStreamRPCServiceModel.blobTypeEquals(this.correlationData, other.correlationData); isEquals = isEquals && this.responseTopic.equals(other.responseTopic); isEquals = isEquals && this.payloadFormat.equals(other.payloadFormat); isEquals = isEquals && this.contentType.equals(other.contentType); return isEquals; } @Override public int hashCode() { return Objects.hash(topicName, qos, payload, retain, userProperties, messageExpiryIntervalSeconds, correlationData, responseTopic, payloadFormat, contentType); } }
5,354
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/ConfigurationValidityReport.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class ConfigurationValidityReport implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#ConfigurationValidityReport"; public static final ConfigurationValidityReport VOID; static { VOID = new ConfigurationValidityReport() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<String> status; @Expose( serialize = true, deserialize = true ) private Optional<String> deploymentId; @Expose( serialize = true, deserialize = true ) private Optional<String> message; public ConfigurationValidityReport() { this.status = Optional.empty(); this.deploymentId = Optional.empty(); this.message = Optional.empty(); } public ConfigurationValidityStatus getStatus() { if (status.isPresent()) { return ConfigurationValidityStatus.get(status.get()); } return null; } /** * The validity status. */ public String getStatusAsString() { if (status.isPresent()) { return status.get(); } return null; } /** * The validity status. */ public void setStatus(final String status) { this.status = Optional.ofNullable(status); } /** * The validity status. */ public ConfigurationValidityReport withStatus(final String status) { setStatus(status); return this; } /** * The validity status. */ public void setStatus(final ConfigurationValidityStatus status) { this.status = Optional.ofNullable(status.getValue()); } /** * The validity status. */ public ConfigurationValidityReport withStatus(final ConfigurationValidityStatus status) { setStatus(status); return this; } /** * The ID of the AWS IoT Greengrass deployment that requested the configuration update. */ public String getDeploymentId() { if (deploymentId.isPresent()) { return deploymentId.get(); } return null; } /** * The ID of the AWS IoT Greengrass deployment that requested the configuration update. */ public void setDeploymentId(final String deploymentId) { this.deploymentId = Optional.ofNullable(deploymentId); } /** * The ID of the AWS IoT Greengrass deployment that requested the configuration update. */ public ConfigurationValidityReport withDeploymentId(final String deploymentId) { setDeploymentId(deploymentId); return this; } /** * (Optional) A message that reports why the configuration isn't valid. */ public String getMessage() { if (message.isPresent()) { return message.get(); } return null; } /** * (Optional) A message that reports why the configuration isn't valid. */ public void setMessage(final String message) { this.message = Optional.ofNullable(message); } /** * (Optional) A message that reports why the configuration isn't valid. */ public ConfigurationValidityReport withMessage(final String message) { setMessage(message); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof ConfigurationValidityReport)) return false; if (this == rhs) return true; final ConfigurationValidityReport other = (ConfigurationValidityReport)rhs; boolean isEquals = true; isEquals = isEquals && this.status.equals(other.status); isEquals = isEquals && this.deploymentId.equals(other.deploymentId); isEquals = isEquals && this.message.equals(other.message); return isEquals; } @Override public int hashCode() { return Objects.hash(status, deploymentId, message); } }
5,355
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/InvalidTokenError.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class InvalidTokenError extends GreengrassCoreIPCError implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#InvalidTokenError"; public static final InvalidTokenError VOID; static { VOID = new InvalidTokenError() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<String> message; public InvalidTokenError(String errorMessage) { super("InvalidTokenError", errorMessage); this.message = Optional.ofNullable(errorMessage); } public InvalidTokenError() { super("InvalidTokenError", ""); this.message = Optional.empty(); } @Override public String getErrorTypeString() { return "server"; } public String getMessage() { if (message.isPresent()) { return message.get(); } return null; } public void setMessage(final String message) { this.message = Optional.ofNullable(message); } public InvalidTokenError withMessage(final String message) { setMessage(message); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof InvalidTokenError)) return false; if (this == rhs) return true; final InvalidTokenError other = (InvalidTokenError)rhs; boolean isEquals = true; isEquals = isEquals && this.message.equals(other.message); return isEquals; } @Override public int hashCode() { return Objects.hash(message); } }
5,356
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/ListLocalDeploymentsResponse.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.List; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class ListLocalDeploymentsResponse implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#ListLocalDeploymentsResponse"; public static final ListLocalDeploymentsResponse VOID; static { VOID = new ListLocalDeploymentsResponse() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<List<LocalDeployment>> localDeployments; public ListLocalDeploymentsResponse() { this.localDeployments = Optional.empty(); } /** * The list of local deployments. */ public List<LocalDeployment> getLocalDeployments() { if (localDeployments.isPresent()) { return localDeployments.get(); } return null; } /** * The list of local deployments. */ public void setLocalDeployments(final List<LocalDeployment> localDeployments) { this.localDeployments = Optional.ofNullable(localDeployments); } /** * The list of local deployments. */ public ListLocalDeploymentsResponse withLocalDeployments( final List<LocalDeployment> localDeployments) { setLocalDeployments(localDeployments); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof ListLocalDeploymentsResponse)) return false; if (this == rhs) return true; final ListLocalDeploymentsResponse other = (ListLocalDeploymentsResponse)rhs; boolean isEquals = true; isEquals = isEquals && this.localDeployments.equals(other.localDeployments); return isEquals; } @Override public int hashCode() { return Objects.hash(localDeployments); } }
5,357
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/RequestStatus.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.SerializedName; import java.lang.Override; import java.lang.String; import java.util.HashMap; import java.util.Map; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public enum RequestStatus implements EventStreamJsonMessage { @SerializedName("SUCCEEDED") SUCCEEDED("SUCCEEDED"), @SerializedName("FAILED") FAILED("FAILED"); public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#RequestStatus"; private static final Map<String, RequestStatus> lookup = new HashMap<String, RequestStatus>(); static { for (RequestStatus value:RequestStatus.values()) { lookup.put(value.getValue(), value); } } String value; RequestStatus(String value) { this.value = value; } public String getValue() { return value; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } public static RequestStatus get(String value) { return lookup.get(value); } }
5,358
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/PublishToTopicResponse.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class PublishToTopicResponse implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#PublishToTopicResponse"; public static final PublishToTopicResponse VOID; static { VOID = new PublishToTopicResponse() { @Override public boolean isVoid() { return true; } }; } public PublishToTopicResponse() { } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof PublishToTopicResponse)) return false; if (this == rhs) return true; final PublishToTopicResponse other = (PublishToTopicResponse)rhs; boolean isEquals = true; return isEquals; } @Override public int hashCode() { return Objects.hash(); } }
5,359
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/DeploymentStatusDetails.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.List; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class DeploymentStatusDetails implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#DeploymentStatusDetails"; public static final DeploymentStatusDetails VOID; static { VOID = new DeploymentStatusDetails() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<String> detailedDeploymentStatus; @Expose( serialize = true, deserialize = true ) private Optional<List<String>> deploymentErrorStack; @Expose( serialize = true, deserialize = true ) private Optional<List<String>> deploymentErrorTypes; @Expose( serialize = true, deserialize = true ) private Optional<String> deploymentFailureCause; public DeploymentStatusDetails() { this.detailedDeploymentStatus = Optional.empty(); this.deploymentErrorStack = Optional.empty(); this.deploymentErrorTypes = Optional.empty(); this.deploymentFailureCause = Optional.empty(); } public DetailedDeploymentStatus getDetailedDeploymentStatus() { if (detailedDeploymentStatus.isPresent()) { return DetailedDeploymentStatus.get(detailedDeploymentStatus.get()); } return null; } /** * The detailed deployment status of the local deployment. */ public String getDetailedDeploymentStatusAsString() { if (detailedDeploymentStatus.isPresent()) { return detailedDeploymentStatus.get(); } return null; } /** * The detailed deployment status of the local deployment. */ public void setDetailedDeploymentStatus(final String detailedDeploymentStatus) { this.detailedDeploymentStatus = Optional.ofNullable(detailedDeploymentStatus); } /** * The detailed deployment status of the local deployment. */ public DeploymentStatusDetails withDetailedDeploymentStatus( final String detailedDeploymentStatus) { setDetailedDeploymentStatus(detailedDeploymentStatus); return this; } /** * The detailed deployment status of the local deployment. */ public void setDetailedDeploymentStatus(final DetailedDeploymentStatus detailedDeploymentStatus) { this.detailedDeploymentStatus = Optional.ofNullable(detailedDeploymentStatus.getValue()); } /** * The detailed deployment status of the local deployment. */ public DeploymentStatusDetails withDetailedDeploymentStatus( final DetailedDeploymentStatus detailedDeploymentStatus) { setDetailedDeploymentStatus(detailedDeploymentStatus); return this; } /** * (Optional) The list of local deployment errors */ public List<String> getDeploymentErrorStack() { if (deploymentErrorStack.isPresent()) { return deploymentErrorStack.get(); } return null; } /** * (Optional) The list of local deployment errors */ public void setDeploymentErrorStack(final List<String> deploymentErrorStack) { this.deploymentErrorStack = Optional.ofNullable(deploymentErrorStack); } /** * (Optional) The list of local deployment errors */ public DeploymentStatusDetails withDeploymentErrorStack(final List<String> deploymentErrorStack) { setDeploymentErrorStack(deploymentErrorStack); return this; } /** * (Optional) The list of local deployment error types */ public List<String> getDeploymentErrorTypes() { if (deploymentErrorTypes.isPresent()) { return deploymentErrorTypes.get(); } return null; } /** * (Optional) The list of local deployment error types */ public void setDeploymentErrorTypes(final List<String> deploymentErrorTypes) { this.deploymentErrorTypes = Optional.ofNullable(deploymentErrorTypes); } /** * (Optional) The list of local deployment error types */ public DeploymentStatusDetails withDeploymentErrorTypes(final List<String> deploymentErrorTypes) { setDeploymentErrorTypes(deploymentErrorTypes); return this; } /** * (Optional) The cause of local deployment failure */ public String getDeploymentFailureCause() { if (deploymentFailureCause.isPresent()) { return deploymentFailureCause.get(); } return null; } /** * (Optional) The cause of local deployment failure */ public void setDeploymentFailureCause(final String deploymentFailureCause) { this.deploymentFailureCause = Optional.ofNullable(deploymentFailureCause); } /** * (Optional) The cause of local deployment failure */ public DeploymentStatusDetails withDeploymentFailureCause(final String deploymentFailureCause) { setDeploymentFailureCause(deploymentFailureCause); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof DeploymentStatusDetails)) return false; if (this == rhs) return true; final DeploymentStatusDetails other = (DeploymentStatusDetails)rhs; boolean isEquals = true; isEquals = isEquals && this.detailedDeploymentStatus.equals(other.detailedDeploymentStatus); isEquals = isEquals && this.deploymentErrorStack.equals(other.deploymentErrorStack); isEquals = isEquals && this.deploymentErrorTypes.equals(other.deploymentErrorTypes); isEquals = isEquals && this.deploymentFailureCause.equals(other.deploymentFailureCause); return isEquals; } @Override public int hashCode() { return Objects.hash(detailedDeploymentStatus, deploymentErrorStack, deploymentErrorTypes, deploymentFailureCause); } }
5,360
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/LocalDeployment.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class LocalDeployment implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#LocalDeployment"; public static final LocalDeployment VOID; static { VOID = new LocalDeployment() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<String> deploymentId; @Expose( serialize = true, deserialize = true ) private Optional<String> status; @Expose( serialize = true, deserialize = true ) private Optional<String> createdOn; @Expose( serialize = true, deserialize = true ) private Optional<DeploymentStatusDetails> deploymentStatusDetails; public LocalDeployment() { this.deploymentId = Optional.empty(); this.status = Optional.empty(); this.createdOn = Optional.empty(); this.deploymentStatusDetails = Optional.empty(); } /** * The ID of the local deployment. */ public String getDeploymentId() { if (deploymentId.isPresent()) { return deploymentId.get(); } return null; } /** * The ID of the local deployment. */ public void setDeploymentId(final String deploymentId) { this.deploymentId = Optional.ofNullable(deploymentId); } /** * The ID of the local deployment. */ public LocalDeployment withDeploymentId(final String deploymentId) { setDeploymentId(deploymentId); return this; } public DeploymentStatus getStatus() { if (status.isPresent()) { return DeploymentStatus.get(status.get()); } return null; } /** * The status of the local deployment. */ public String getStatusAsString() { if (status.isPresent()) { return status.get(); } return null; } /** * The status of the local deployment. */ public void setStatus(final String status) { this.status = Optional.ofNullable(status); } /** * The status of the local deployment. */ public LocalDeployment withStatus(final String status) { setStatus(status); return this; } /** * The status of the local deployment. */ public void setStatus(final DeploymentStatus status) { this.status = Optional.ofNullable(status.getValue()); } /** * The status of the local deployment. */ public LocalDeployment withStatus(final DeploymentStatus status) { setStatus(status); return this; } /** * (Optional) The timestamp at which the local deployment was created in MM/dd/yyyy hh:mm:ss format */ public String getCreatedOn() { if (createdOn.isPresent()) { return createdOn.get(); } return null; } /** * (Optional) The timestamp at which the local deployment was created in MM/dd/yyyy hh:mm:ss format */ public void setCreatedOn(final String createdOn) { this.createdOn = Optional.ofNullable(createdOn); } /** * (Optional) The timestamp at which the local deployment was created in MM/dd/yyyy hh:mm:ss format */ public LocalDeployment withCreatedOn(final String createdOn) { setCreatedOn(createdOn); return this; } /** * (Optional) The status details of the local deployment. */ public DeploymentStatusDetails getDeploymentStatusDetails() { if (deploymentStatusDetails.isPresent()) { return deploymentStatusDetails.get(); } return null; } /** * (Optional) The status details of the local deployment. */ public void setDeploymentStatusDetails(final DeploymentStatusDetails deploymentStatusDetails) { this.deploymentStatusDetails = Optional.ofNullable(deploymentStatusDetails); } /** * (Optional) The status details of the local deployment. */ public LocalDeployment withDeploymentStatusDetails( final DeploymentStatusDetails deploymentStatusDetails) { setDeploymentStatusDetails(deploymentStatusDetails); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof LocalDeployment)) return false; if (this == rhs) return true; final LocalDeployment other = (LocalDeployment)rhs; boolean isEquals = true; isEquals = isEquals && this.deploymentId.equals(other.deploymentId); isEquals = isEquals && this.status.equals(other.status); isEquals = isEquals && this.createdOn.equals(other.createdOn); isEquals = isEquals && this.deploymentStatusDetails.equals(other.deploymentStatusDetails); return isEquals; } @Override public int hashCode() { return Objects.hash(deploymentId, status, createdOn, deploymentStatusDetails); } }
5,361
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/UpdateConfigurationResponse.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class UpdateConfigurationResponse implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#UpdateConfigurationResponse"; public static final UpdateConfigurationResponse VOID; static { VOID = new UpdateConfigurationResponse() { @Override public boolean isVoid() { return true; } }; } public UpdateConfigurationResponse() { } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof UpdateConfigurationResponse)) return false; if (this == rhs) return true; final UpdateConfigurationResponse other = (UpdateConfigurationResponse)rhs; boolean isEquals = true; return isEquals; } @Override public int hashCode() { return Objects.hash(); } }
5,362
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/SubscribeToComponentUpdatesResponse.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class SubscribeToComponentUpdatesResponse implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#SubscribeToComponentUpdatesResponse"; public static final SubscribeToComponentUpdatesResponse VOID; static { VOID = new SubscribeToComponentUpdatesResponse() { @Override public boolean isVoid() { return true; } }; } public SubscribeToComponentUpdatesResponse() { } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof SubscribeToComponentUpdatesResponse)) return false; if (this == rhs) return true; final SubscribeToComponentUpdatesResponse other = (SubscribeToComponentUpdatesResponse)rhs; boolean isEquals = true; return isEquals; } @Override public int hashCode() { return Objects.hash(); } }
5,363
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/ValidateConfigurationUpdateEvents.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import java.util.function.Consumer; import java.util.function.Predicate; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class ValidateConfigurationUpdateEvents implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#ValidateConfigurationUpdateEvents"; private transient UnionMember setUnionMember; @Expose( serialize = true, deserialize = true ) private Optional<ValidateConfigurationUpdateEvent> validateConfigurationUpdateEvent; public ValidateConfigurationUpdateEvents() { this.validateConfigurationUpdateEvent = Optional.empty(); } public ValidateConfigurationUpdateEvent getValidateConfigurationUpdateEvent() { if (validateConfigurationUpdateEvent.isPresent() && (setUnionMember == UnionMember.VALIDATE_CONFIGURATION_UPDATE_EVENT)) { return validateConfigurationUpdateEvent.get(); } return null; } public void setValidateConfigurationUpdateEvent( final ValidateConfigurationUpdateEvent validateConfigurationUpdateEvent) { if (setUnionMember != null) { setUnionMember.nullify(this); } this.validateConfigurationUpdateEvent = Optional.of(validateConfigurationUpdateEvent); this.setUnionMember = UnionMember.VALIDATE_CONFIGURATION_UPDATE_EVENT; } public ValidateConfigurationUpdateEvents withValidateConfigurationUpdateEvent( final ValidateConfigurationUpdateEvent validateConfigurationUpdateEvent) { setValidateConfigurationUpdateEvent(validateConfigurationUpdateEvent); return this; } /** * Returns an indicator for which enum member is set. Can be used to convert to proper type. */ public UnionMember getSetUnionMember() { return setUnionMember; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } public void selfDesignateSetUnionMember() { int setCount = 0; UnionMember[] members = UnionMember.values(); for (int memberIdx = 0; memberIdx < UnionMember.values().length; ++memberIdx) { if (members[memberIdx].isPresent(this)) { ++setCount; this.setUnionMember = members[memberIdx]; } } // only bad outcome here is if there's more than one member set. It's possible for none to be set if (setCount > 1) { throw new IllegalArgumentException("More than one union member set for type: " + getApplicationModelType()); } } @Override public void postFromJson() { selfDesignateSetUnionMember(); } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof ValidateConfigurationUpdateEvents)) return false; if (this == rhs) return true; final ValidateConfigurationUpdateEvents other = (ValidateConfigurationUpdateEvents)rhs; boolean isEquals = true; isEquals = isEquals && this.validateConfigurationUpdateEvent.equals(other.validateConfigurationUpdateEvent); isEquals = isEquals && this.setUnionMember.equals(other.setUnionMember); return isEquals; } @Override public int hashCode() { return Objects.hash(validateConfigurationUpdateEvent, setUnionMember); } public enum UnionMember { VALIDATE_CONFIGURATION_UPDATE_EVENT("VALIDATE_CONFIGURATION_UPDATE_EVENT", (software.amazon.awssdk.aws.greengrass.model.ValidateConfigurationUpdateEvents obj) -> obj.validateConfigurationUpdateEvent = Optional.empty(), (software.amazon.awssdk.aws.greengrass.model.ValidateConfigurationUpdateEvents obj) -> obj.validateConfigurationUpdateEvent != null && obj.validateConfigurationUpdateEvent.isPresent()); private String fieldName; private Consumer<ValidateConfigurationUpdateEvents> nullifier; private Predicate<ValidateConfigurationUpdateEvents> isPresent; UnionMember(String fieldName, Consumer<ValidateConfigurationUpdateEvents> nullifier, Predicate<ValidateConfigurationUpdateEvents> isPresent) { this.fieldName = fieldName; this.nullifier = nullifier; this.isPresent = isPresent; } void nullify(ValidateConfigurationUpdateEvents obj) { nullifier.accept(obj); } boolean isPresent(ValidateConfigurationUpdateEvents obj) { return isPresent.test(obj); } } }
5,364
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/GetComponentDetailsResponse.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class GetComponentDetailsResponse implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#GetComponentDetailsResponse"; public static final GetComponentDetailsResponse VOID; static { VOID = new GetComponentDetailsResponse() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<ComponentDetails> componentDetails; public GetComponentDetailsResponse() { this.componentDetails = Optional.empty(); } /** * The component's details. */ public ComponentDetails getComponentDetails() { if (componentDetails.isPresent()) { return componentDetails.get(); } return null; } /** * The component's details. */ public void setComponentDetails(final ComponentDetails componentDetails) { this.componentDetails = Optional.ofNullable(componentDetails); } /** * The component's details. */ public GetComponentDetailsResponse withComponentDetails(final ComponentDetails componentDetails) { setComponentDetails(componentDetails); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof GetComponentDetailsResponse)) return false; if (this == rhs) return true; final GetComponentDetailsResponse other = (GetComponentDetailsResponse)rhs; boolean isEquals = true; isEquals = isEquals && this.componentDetails.equals(other.componentDetails); return isEquals; } @Override public int hashCode() { return Objects.hash(componentDetails); } }
5,365
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/GetClientDeviceAuthTokenRequest.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class GetClientDeviceAuthTokenRequest implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#GetClientDeviceAuthTokenRequest"; public static final GetClientDeviceAuthTokenRequest VOID; static { VOID = new GetClientDeviceAuthTokenRequest() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<CredentialDocument> credential; public GetClientDeviceAuthTokenRequest() { this.credential = Optional.empty(); } /** * The client device's credentials. */ public CredentialDocument getCredential() { if (credential.isPresent()) { return credential.get(); } return null; } /** * The client device's credentials. */ public void setCredential(final CredentialDocument credential) { this.credential = Optional.ofNullable(credential); } /** * The client device's credentials. */ public GetClientDeviceAuthTokenRequest withCredential(final CredentialDocument credential) { setCredential(credential); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof GetClientDeviceAuthTokenRequest)) return false; if (this == rhs) return true; final GetClientDeviceAuthTokenRequest other = (GetClientDeviceAuthTokenRequest)rhs; boolean isEquals = true; isEquals = isEquals && this.credential.equals(other.credential); return isEquals; } @Override public int hashCode() { return Objects.hash(credential); } }
5,366
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/SubscribeToConfigurationUpdateResponse.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class SubscribeToConfigurationUpdateResponse implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#SubscribeToConfigurationUpdateResponse"; public static final SubscribeToConfigurationUpdateResponse VOID; static { VOID = new SubscribeToConfigurationUpdateResponse() { @Override public boolean isVoid() { return true; } }; } public SubscribeToConfigurationUpdateResponse() { } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof SubscribeToConfigurationUpdateResponse)) return false; if (this == rhs) return true; final SubscribeToConfigurationUpdateResponse other = (SubscribeToConfigurationUpdateResponse)rhs; boolean isEquals = true; return isEquals; } @Override public int hashCode() { return Objects.hash(); } }
5,367
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/DeferComponentUpdateResponse.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class DeferComponentUpdateResponse implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#DeferComponentUpdateResponse"; public static final DeferComponentUpdateResponse VOID; static { VOID = new DeferComponentUpdateResponse() { @Override public boolean isVoid() { return true; } }; } public DeferComponentUpdateResponse() { } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof DeferComponentUpdateResponse)) return false; if (this == rhs) return true; final DeferComponentUpdateResponse other = (DeferComponentUpdateResponse)rhs; boolean isEquals = true; return isEquals; } @Override public int hashCode() { return Objects.hash(); } }
5,368
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/PublishToTopicRequest.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class PublishToTopicRequest implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#PublishToTopicRequest"; public static final PublishToTopicRequest VOID; static { VOID = new PublishToTopicRequest() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<String> topic; @Expose( serialize = true, deserialize = true ) private Optional<PublishMessage> publishMessage; public PublishToTopicRequest() { this.topic = Optional.empty(); this.publishMessage = Optional.empty(); } /** * The topic to publish the message. */ public String getTopic() { if (topic.isPresent()) { return topic.get(); } return null; } /** * The topic to publish the message. */ public void setTopic(final String topic) { this.topic = Optional.ofNullable(topic); } /** * The topic to publish the message. */ public PublishToTopicRequest withTopic(final String topic) { setTopic(topic); return this; } /** * The message to publish. */ public PublishMessage getPublishMessage() { if (publishMessage.isPresent()) { return publishMessage.get(); } return null; } /** * The message to publish. */ public void setPublishMessage(final PublishMessage publishMessage) { this.publishMessage = Optional.ofNullable(publishMessage); } /** * The message to publish. */ public PublishToTopicRequest withPublishMessage(final PublishMessage publishMessage) { setPublishMessage(publishMessage); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof PublishToTopicRequest)) return false; if (this == rhs) return true; final PublishToTopicRequest other = (PublishToTopicRequest)rhs; boolean isEquals = true; isEquals = isEquals && this.topic.equals(other.topic); isEquals = isEquals && this.publishMessage.equals(other.publishMessage); return isEquals; } @Override public int hashCode() { return Objects.hash(topic, publishMessage); } }
5,369
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/ListLocalDeploymentsRequest.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class ListLocalDeploymentsRequest implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#ListLocalDeploymentsRequest"; public static final ListLocalDeploymentsRequest VOID; static { VOID = new ListLocalDeploymentsRequest() { @Override public boolean isVoid() { return true; } }; } public ListLocalDeploymentsRequest() { } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof ListLocalDeploymentsRequest)) return false; if (this == rhs) return true; final ListLocalDeploymentsRequest other = (ListLocalDeploymentsRequest)rhs; boolean isEquals = true; return isEquals; } @Override public int hashCode() { return Objects.hash(); } }
5,370
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/VerifyClientDeviceIdentityRequest.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class VerifyClientDeviceIdentityRequest implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#VerifyClientDeviceIdentityRequest"; public static final VerifyClientDeviceIdentityRequest VOID; static { VOID = new VerifyClientDeviceIdentityRequest() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<ClientDeviceCredential> credential; public VerifyClientDeviceIdentityRequest() { this.credential = Optional.empty(); } /** * The client device's credentials. */ public ClientDeviceCredential getCredential() { if (credential.isPresent()) { return credential.get(); } return null; } /** * The client device's credentials. */ public void setCredential(final ClientDeviceCredential credential) { this.credential = Optional.ofNullable(credential); } /** * The client device's credentials. */ public VerifyClientDeviceIdentityRequest withCredential(final ClientDeviceCredential credential) { setCredential(credential); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof VerifyClientDeviceIdentityRequest)) return false; if (this == rhs) return true; final VerifyClientDeviceIdentityRequest other = (VerifyClientDeviceIdentityRequest)rhs; boolean isEquals = true; isEquals = isEquals && this.credential.equals(other.credential); return isEquals; } @Override public int hashCode() { return Objects.hash(credential); } }
5,371
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/PauseComponentResponse.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class PauseComponentResponse implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#PauseComponentResponse"; public static final PauseComponentResponse VOID; static { VOID = new PauseComponentResponse() { @Override public boolean isVoid() { return true; } }; } public PauseComponentResponse() { } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof PauseComponentResponse)) return false; if (this == rhs) return true; final PauseComponentResponse other = (PauseComponentResponse)rhs; boolean isEquals = true; return isEquals; } @Override public int hashCode() { return Objects.hash(); } }
5,372
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/SendConfigurationValidityReportResponse.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class SendConfigurationValidityReportResponse implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#SendConfigurationValidityReportResponse"; public static final SendConfigurationValidityReportResponse VOID; static { VOID = new SendConfigurationValidityReportResponse() { @Override public boolean isVoid() { return true; } }; } public SendConfigurationValidityReportResponse() { } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof SendConfigurationValidityReportResponse)) return false; if (this == rhs) return true; final SendConfigurationValidityReportResponse other = (SendConfigurationValidityReportResponse)rhs; boolean isEquals = true; return isEquals; } @Override public int hashCode() { return Objects.hash(); } }
5,373
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/MetricUnitType.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.SerializedName; import java.lang.Override; import java.lang.String; import java.util.HashMap; import java.util.Map; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public enum MetricUnitType implements EventStreamJsonMessage { @SerializedName("BYTES") BYTES("BYTES"), @SerializedName("BYTES_PER_SECOND") BYTES_PER_SECOND("BYTES_PER_SECOND"), @SerializedName("COUNT") COUNT("COUNT"), @SerializedName("COUNT_PER_SECOND") COUNT_PER_SECOND("COUNT_PER_SECOND"), @SerializedName("MEGABYTES") MEGABYTES("MEGABYTES"), @SerializedName("SECONDS") SECONDS("SECONDS"); public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#MetricUnitType"; private static final Map<String, MetricUnitType> lookup = new HashMap<String, MetricUnitType>(); static { for (MetricUnitType value:MetricUnitType.values()) { lookup.put(value.getValue(), value); } } String value; MetricUnitType(String value) { this.value = value; } public String getValue() { return value; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } public static MetricUnitType get(String value) { return lookup.get(value); } }
5,374
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/SubscribeToConfigurationUpdateRequest.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.List; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class SubscribeToConfigurationUpdateRequest implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#SubscribeToConfigurationUpdateRequest"; public static final SubscribeToConfigurationUpdateRequest VOID; static { VOID = new SubscribeToConfigurationUpdateRequest() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<String> componentName; @Expose( serialize = true, deserialize = true ) private Optional<List<String>> keyPath; public SubscribeToConfigurationUpdateRequest() { this.componentName = Optional.empty(); this.keyPath = Optional.empty(); } /** * (Optional) The name of the component. Defaults to the name of the component that makes the request. */ public String getComponentName() { if (componentName.isPresent()) { return componentName.get(); } return null; } /** * (Optional) The name of the component. Defaults to the name of the component that makes the request. */ public void setComponentName(final String componentName) { this.componentName = Optional.ofNullable(componentName); } /** * (Optional) The name of the component. Defaults to the name of the component that makes the request. */ public SubscribeToConfigurationUpdateRequest withComponentName(final String componentName) { setComponentName(componentName); return this; } /** * The key path to the configuration value for which to subscribe. Specify a list where each entry is the key for a single level in the configuration object. */ public List<String> getKeyPath() { if (keyPath.isPresent()) { return keyPath.get(); } return null; } /** * The key path to the configuration value for which to subscribe. Specify a list where each entry is the key for a single level in the configuration object. */ public void setKeyPath(final List<String> keyPath) { this.keyPath = Optional.ofNullable(keyPath); } /** * The key path to the configuration value for which to subscribe. Specify a list where each entry is the key for a single level in the configuration object. */ public SubscribeToConfigurationUpdateRequest withKeyPath(final List<String> keyPath) { setKeyPath(keyPath); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof SubscribeToConfigurationUpdateRequest)) return false; if (this == rhs) return true; final SubscribeToConfigurationUpdateRequest other = (SubscribeToConfigurationUpdateRequest)rhs; boolean isEquals = true; isEquals = isEquals && this.componentName.equals(other.componentName); isEquals = isEquals && this.keyPath.equals(other.keyPath); return isEquals; } @Override public int hashCode() { return Objects.hash(componentName, keyPath); } }
5,375
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/InvalidArtifactsDirectoryPathError.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class InvalidArtifactsDirectoryPathError extends GreengrassCoreIPCError implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#InvalidArtifactsDirectoryPathError"; public static final InvalidArtifactsDirectoryPathError VOID; static { VOID = new InvalidArtifactsDirectoryPathError() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<String> message; public InvalidArtifactsDirectoryPathError(String errorMessage) { super("InvalidArtifactsDirectoryPathError", errorMessage); this.message = Optional.ofNullable(errorMessage); } public InvalidArtifactsDirectoryPathError() { super("InvalidArtifactsDirectoryPathError", ""); this.message = Optional.empty(); } @Override public String getErrorTypeString() { return "client"; } public String getMessage() { if (message.isPresent()) { return message.get(); } return null; } public void setMessage(final String message) { this.message = Optional.ofNullable(message); } public InvalidArtifactsDirectoryPathError withMessage(final String message) { setMessage(message); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof InvalidArtifactsDirectoryPathError)) return false; if (this == rhs) return true; final InvalidArtifactsDirectoryPathError other = (InvalidArtifactsDirectoryPathError)rhs; boolean isEquals = true; isEquals = isEquals && this.message.equals(other.message); return isEquals; } @Override public int hashCode() { return Objects.hash(message); } }
5,376
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/GetClientDeviceAuthTokenResponse.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class GetClientDeviceAuthTokenResponse implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#GetClientDeviceAuthTokenResponse"; public static final GetClientDeviceAuthTokenResponse VOID; static { VOID = new GetClientDeviceAuthTokenResponse() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<String> clientDeviceAuthToken; public GetClientDeviceAuthTokenResponse() { this.clientDeviceAuthToken = Optional.empty(); } /** * The session token for the client device. You can use this session token in subsequent requests to authorize this client device's actions. */ public String getClientDeviceAuthToken() { if (clientDeviceAuthToken.isPresent()) { return clientDeviceAuthToken.get(); } return null; } /** * The session token for the client device. You can use this session token in subsequent requests to authorize this client device's actions. */ public void setClientDeviceAuthToken(final String clientDeviceAuthToken) { this.clientDeviceAuthToken = Optional.ofNullable(clientDeviceAuthToken); } /** * The session token for the client device. You can use this session token in subsequent requests to authorize this client device's actions. */ public GetClientDeviceAuthTokenResponse withClientDeviceAuthToken( final String clientDeviceAuthToken) { setClientDeviceAuthToken(clientDeviceAuthToken); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof GetClientDeviceAuthTokenResponse)) return false; if (this == rhs) return true; final GetClientDeviceAuthTokenResponse other = (GetClientDeviceAuthTokenResponse)rhs; boolean isEquals = true; isEquals = isEquals && this.clientDeviceAuthToken.equals(other.clientDeviceAuthToken); return isEquals; } @Override public int hashCode() { return Objects.hash(clientDeviceAuthToken); } }
5,377
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/AuthorizeClientDeviceActionResponse.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Boolean; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class AuthorizeClientDeviceActionResponse implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#AuthorizeClientDeviceActionResponse"; public static final AuthorizeClientDeviceActionResponse VOID; static { VOID = new AuthorizeClientDeviceActionResponse() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<Boolean> isAuthorized; public AuthorizeClientDeviceActionResponse() { this.isAuthorized = Optional.empty(); } /** * Whether the client device is authorized to perform the operation on the resource. */ public Boolean isIsAuthorized() { if (isAuthorized.isPresent()) { return isAuthorized.get(); } return null; } /** * Whether the client device is authorized to perform the operation on the resource. */ public void setIsAuthorized(final Boolean isAuthorized) { this.isAuthorized = Optional.ofNullable(isAuthorized); } /** * Whether the client device is authorized to perform the operation on the resource. */ public AuthorizeClientDeviceActionResponse withIsAuthorized(final Boolean isAuthorized) { setIsAuthorized(isAuthorized); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof AuthorizeClientDeviceActionResponse)) return false; if (this == rhs) return true; final AuthorizeClientDeviceActionResponse other = (AuthorizeClientDeviceActionResponse)rhs; boolean isEquals = true; isEquals = isEquals && this.isAuthorized.equals(other.isAuthorized); return isEquals; } @Override public int hashCode() { return Objects.hash(isAuthorized); } }
5,378
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/RunWithInfo.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import com.google.gson.annotations.Expose; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import java.util.Optional; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class RunWithInfo implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#RunWithInfo"; public static final RunWithInfo VOID; static { VOID = new RunWithInfo() { @Override public boolean isVoid() { return true; } }; } @Expose( serialize = true, deserialize = true ) private Optional<String> posixUser; @Expose( serialize = true, deserialize = true ) private Optional<String> windowsUser; @Expose( serialize = true, deserialize = true ) private Optional<SystemResourceLimits> systemResourceLimits; public RunWithInfo() { this.posixUser = Optional.empty(); this.windowsUser = Optional.empty(); this.systemResourceLimits = Optional.empty(); } /** * (Optional) The POSIX system user and, optionally, group to use to run this component on Linux core devices. */ public String getPosixUser() { if (posixUser.isPresent()) { return posixUser.get(); } return null; } /** * (Optional) The POSIX system user and, optionally, group to use to run this component on Linux core devices. */ public void setPosixUser(final String posixUser) { this.posixUser = Optional.ofNullable(posixUser); } /** * (Optional) The POSIX system user and, optionally, group to use to run this component on Linux core devices. */ public RunWithInfo withPosixUser(final String posixUser) { setPosixUser(posixUser); return this; } /** * (Optional) The Windows user to use to run this component on Windows core devices. */ public String getWindowsUser() { if (windowsUser.isPresent()) { return windowsUser.get(); } return null; } /** * (Optional) The Windows user to use to run this component on Windows core devices. */ public void setWindowsUser(final String windowsUser) { this.windowsUser = Optional.ofNullable(windowsUser); } /** * (Optional) The Windows user to use to run this component on Windows core devices. */ public RunWithInfo withWindowsUser(final String windowsUser) { setWindowsUser(windowsUser); return this; } /** * (Optional) The system resource limits to apply to this component's processes. */ public SystemResourceLimits getSystemResourceLimits() { if (systemResourceLimits.isPresent()) { return systemResourceLimits.get(); } return null; } /** * (Optional) The system resource limits to apply to this component's processes. */ public void setSystemResourceLimits(final SystemResourceLimits systemResourceLimits) { this.systemResourceLimits = Optional.ofNullable(systemResourceLimits); } /** * (Optional) The system resource limits to apply to this component's processes. */ public RunWithInfo withSystemResourceLimits(final SystemResourceLimits systemResourceLimits) { setSystemResourceLimits(systemResourceLimits); return this; } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof RunWithInfo)) return false; if (this == rhs) return true; final RunWithInfo other = (RunWithInfo)rhs; boolean isEquals = true; isEquals = isEquals && this.posixUser.equals(other.posixUser); isEquals = isEquals && this.windowsUser.equals(other.windowsUser); isEquals = isEquals && this.systemResourceLimits.equals(other.systemResourceLimits); return isEquals; } @Override public int hashCode() { return Objects.hash(posixUser, windowsUser, systemResourceLimits); } }
5,379
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/model/software/amazon/awssdk/aws/greengrass/model/SubscribeToValidateConfigurationUpdatesRequest.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass.model; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Objects; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class SubscribeToValidateConfigurationUpdatesRequest implements EventStreamJsonMessage { public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#SubscribeToValidateConfigurationUpdatesRequest"; public static final SubscribeToValidateConfigurationUpdatesRequest VOID; static { VOID = new SubscribeToValidateConfigurationUpdatesRequest() { @Override public boolean isVoid() { return true; } }; } public SubscribeToValidateConfigurationUpdatesRequest() { } @Override public String getApplicationModelType() { return APPLICATION_MODEL_TYPE; } @Override public boolean equals(Object rhs) { if (rhs == null) return false; if (!(rhs instanceof SubscribeToValidateConfigurationUpdatesRequest)) return false; if (this == rhs) return true; final SubscribeToValidateConfigurationUpdatesRequest other = (SubscribeToValidateConfigurationUpdatesRequest)rhs; boolean isEquals = true; return isEquals; } @Override public int hashCode() { return Objects.hash(); } }
5,380
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws/greengrass/GreengrassCoreIPCClient.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass; import java.lang.Override; import java.util.Optional; import software.amazon.awssdk.aws.greengrass.model.AuthorizeClientDeviceActionRequest; import software.amazon.awssdk.aws.greengrass.model.CancelLocalDeploymentRequest; import software.amazon.awssdk.aws.greengrass.model.CertificateUpdateEvent; import software.amazon.awssdk.aws.greengrass.model.ComponentUpdatePolicyEvents; import software.amazon.awssdk.aws.greengrass.model.ConfigurationUpdateEvents; import software.amazon.awssdk.aws.greengrass.model.CreateDebugPasswordRequest; import software.amazon.awssdk.aws.greengrass.model.CreateLocalDeploymentRequest; import software.amazon.awssdk.aws.greengrass.model.DeferComponentUpdateRequest; import software.amazon.awssdk.aws.greengrass.model.DeleteThingShadowRequest; import software.amazon.awssdk.aws.greengrass.model.GetClientDeviceAuthTokenRequest; import software.amazon.awssdk.aws.greengrass.model.GetComponentDetailsRequest; import software.amazon.awssdk.aws.greengrass.model.GetConfigurationRequest; import software.amazon.awssdk.aws.greengrass.model.GetLocalDeploymentStatusRequest; import software.amazon.awssdk.aws.greengrass.model.GetSecretValueRequest; import software.amazon.awssdk.aws.greengrass.model.GetThingShadowRequest; import software.amazon.awssdk.aws.greengrass.model.IoTCoreMessage; import software.amazon.awssdk.aws.greengrass.model.ListComponentsRequest; import software.amazon.awssdk.aws.greengrass.model.ListLocalDeploymentsRequest; import software.amazon.awssdk.aws.greengrass.model.ListNamedShadowsForThingRequest; import software.amazon.awssdk.aws.greengrass.model.PauseComponentRequest; import software.amazon.awssdk.aws.greengrass.model.PublishToIoTCoreRequest; import software.amazon.awssdk.aws.greengrass.model.PublishToTopicRequest; import software.amazon.awssdk.aws.greengrass.model.PutComponentMetricRequest; import software.amazon.awssdk.aws.greengrass.model.RestartComponentRequest; import software.amazon.awssdk.aws.greengrass.model.ResumeComponentRequest; import software.amazon.awssdk.aws.greengrass.model.SendConfigurationValidityReportRequest; import software.amazon.awssdk.aws.greengrass.model.StopComponentRequest; import software.amazon.awssdk.aws.greengrass.model.SubscribeToCertificateUpdatesRequest; import software.amazon.awssdk.aws.greengrass.model.SubscribeToComponentUpdatesRequest; import software.amazon.awssdk.aws.greengrass.model.SubscribeToConfigurationUpdateRequest; import software.amazon.awssdk.aws.greengrass.model.SubscribeToIoTCoreRequest; import software.amazon.awssdk.aws.greengrass.model.SubscribeToTopicRequest; import software.amazon.awssdk.aws.greengrass.model.SubscribeToValidateConfigurationUpdatesRequest; import software.amazon.awssdk.aws.greengrass.model.SubscriptionResponseMessage; import software.amazon.awssdk.aws.greengrass.model.UpdateConfigurationRequest; import software.amazon.awssdk.aws.greengrass.model.UpdateStateRequest; import software.amazon.awssdk.aws.greengrass.model.UpdateThingShadowRequest; import software.amazon.awssdk.aws.greengrass.model.ValidateAuthorizationTokenRequest; import software.amazon.awssdk.aws.greengrass.model.ValidateConfigurationUpdateEvents; import software.amazon.awssdk.aws.greengrass.model.VerifyClientDeviceIdentityRequest; import software.amazon.awssdk.eventstreamrpc.EventStreamRPCClient; import software.amazon.awssdk.eventstreamrpc.EventStreamRPCConnection; import software.amazon.awssdk.eventstreamrpc.StreamResponseHandler; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public class GreengrassCoreIPCClient extends EventStreamRPCClient implements GreengrassCoreIPC { public GreengrassCoreIPCClient(final EventStreamRPCConnection connection) { super(connection); } @Override public AuthorizeClientDeviceActionResponseHandler authorizeClientDeviceAction( final AuthorizeClientDeviceActionRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler) { final AuthorizeClientDeviceActionOperationContext operationContext = GreengrassCoreIPCServiceModel.getAuthorizeClientDeviceActionModelContext(); return new AuthorizeClientDeviceActionResponseHandler(doOperationInvoke(operationContext, request, streamResponseHandler)); } @Override public CancelLocalDeploymentResponseHandler cancelLocalDeployment( final CancelLocalDeploymentRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler) { final CancelLocalDeploymentOperationContext operationContext = GreengrassCoreIPCServiceModel.getCancelLocalDeploymentModelContext(); return new CancelLocalDeploymentResponseHandler(doOperationInvoke(operationContext, request, streamResponseHandler)); } @Override public CreateDebugPasswordResponseHandler createDebugPassword( final CreateDebugPasswordRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler) { final CreateDebugPasswordOperationContext operationContext = GreengrassCoreIPCServiceModel.getCreateDebugPasswordModelContext(); return new CreateDebugPasswordResponseHandler(doOperationInvoke(operationContext, request, streamResponseHandler)); } @Override public CreateLocalDeploymentResponseHandler createLocalDeployment( final CreateLocalDeploymentRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler) { final CreateLocalDeploymentOperationContext operationContext = GreengrassCoreIPCServiceModel.getCreateLocalDeploymentModelContext(); return new CreateLocalDeploymentResponseHandler(doOperationInvoke(operationContext, request, streamResponseHandler)); } @Override public DeferComponentUpdateResponseHandler deferComponentUpdate( final DeferComponentUpdateRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler) { final DeferComponentUpdateOperationContext operationContext = GreengrassCoreIPCServiceModel.getDeferComponentUpdateModelContext(); return new DeferComponentUpdateResponseHandler(doOperationInvoke(operationContext, request, streamResponseHandler)); } @Override public DeleteThingShadowResponseHandler deleteThingShadow(final DeleteThingShadowRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler) { final DeleteThingShadowOperationContext operationContext = GreengrassCoreIPCServiceModel.getDeleteThingShadowModelContext(); return new DeleteThingShadowResponseHandler(doOperationInvoke(operationContext, request, streamResponseHandler)); } @Override public GetClientDeviceAuthTokenResponseHandler getClientDeviceAuthToken( final GetClientDeviceAuthTokenRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler) { final GetClientDeviceAuthTokenOperationContext operationContext = GreengrassCoreIPCServiceModel.getGetClientDeviceAuthTokenModelContext(); return new GetClientDeviceAuthTokenResponseHandler(doOperationInvoke(operationContext, request, streamResponseHandler)); } @Override public GetComponentDetailsResponseHandler getComponentDetails( final GetComponentDetailsRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler) { final GetComponentDetailsOperationContext operationContext = GreengrassCoreIPCServiceModel.getGetComponentDetailsModelContext(); return new GetComponentDetailsResponseHandler(doOperationInvoke(operationContext, request, streamResponseHandler)); } @Override public GetConfigurationResponseHandler getConfiguration(final GetConfigurationRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler) { final GetConfigurationOperationContext operationContext = GreengrassCoreIPCServiceModel.getGetConfigurationModelContext(); return new GetConfigurationResponseHandler(doOperationInvoke(operationContext, request, streamResponseHandler)); } @Override public GetLocalDeploymentStatusResponseHandler getLocalDeploymentStatus( final GetLocalDeploymentStatusRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler) { final GetLocalDeploymentStatusOperationContext operationContext = GreengrassCoreIPCServiceModel.getGetLocalDeploymentStatusModelContext(); return new GetLocalDeploymentStatusResponseHandler(doOperationInvoke(operationContext, request, streamResponseHandler)); } @Override public GetSecretValueResponseHandler getSecretValue(final GetSecretValueRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler) { final GetSecretValueOperationContext operationContext = GreengrassCoreIPCServiceModel.getGetSecretValueModelContext(); return new GetSecretValueResponseHandler(doOperationInvoke(operationContext, request, streamResponseHandler)); } @Override public GetThingShadowResponseHandler getThingShadow(final GetThingShadowRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler) { final GetThingShadowOperationContext operationContext = GreengrassCoreIPCServiceModel.getGetThingShadowModelContext(); return new GetThingShadowResponseHandler(doOperationInvoke(operationContext, request, streamResponseHandler)); } @Override public ListComponentsResponseHandler listComponents(final ListComponentsRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler) { final ListComponentsOperationContext operationContext = GreengrassCoreIPCServiceModel.getListComponentsModelContext(); return new ListComponentsResponseHandler(doOperationInvoke(operationContext, request, streamResponseHandler)); } @Override public ListLocalDeploymentsResponseHandler listLocalDeployments( final ListLocalDeploymentsRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler) { final ListLocalDeploymentsOperationContext operationContext = GreengrassCoreIPCServiceModel.getListLocalDeploymentsModelContext(); return new ListLocalDeploymentsResponseHandler(doOperationInvoke(operationContext, request, streamResponseHandler)); } @Override public ListNamedShadowsForThingResponseHandler listNamedShadowsForThing( final ListNamedShadowsForThingRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler) { final ListNamedShadowsForThingOperationContext operationContext = GreengrassCoreIPCServiceModel.getListNamedShadowsForThingModelContext(); return new ListNamedShadowsForThingResponseHandler(doOperationInvoke(operationContext, request, streamResponseHandler)); } @Override public PauseComponentResponseHandler pauseComponent(final PauseComponentRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler) { final PauseComponentOperationContext operationContext = GreengrassCoreIPCServiceModel.getPauseComponentModelContext(); return new PauseComponentResponseHandler(doOperationInvoke(operationContext, request, streamResponseHandler)); } @Override public PublishToIoTCoreResponseHandler publishToIoTCore(final PublishToIoTCoreRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler) { final PublishToIoTCoreOperationContext operationContext = GreengrassCoreIPCServiceModel.getPublishToIoTCoreModelContext(); return new PublishToIoTCoreResponseHandler(doOperationInvoke(operationContext, request, streamResponseHandler)); } @Override public PublishToTopicResponseHandler publishToTopic(final PublishToTopicRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler) { final PublishToTopicOperationContext operationContext = GreengrassCoreIPCServiceModel.getPublishToTopicModelContext(); return new PublishToTopicResponseHandler(doOperationInvoke(operationContext, request, streamResponseHandler)); } @Override public PutComponentMetricResponseHandler putComponentMetric( final PutComponentMetricRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler) { final PutComponentMetricOperationContext operationContext = GreengrassCoreIPCServiceModel.getPutComponentMetricModelContext(); return new PutComponentMetricResponseHandler(doOperationInvoke(operationContext, request, streamResponseHandler)); } @Override public RestartComponentResponseHandler restartComponent(final RestartComponentRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler) { final RestartComponentOperationContext operationContext = GreengrassCoreIPCServiceModel.getRestartComponentModelContext(); return new RestartComponentResponseHandler(doOperationInvoke(operationContext, request, streamResponseHandler)); } @Override public ResumeComponentResponseHandler resumeComponent(final ResumeComponentRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler) { final ResumeComponentOperationContext operationContext = GreengrassCoreIPCServiceModel.getResumeComponentModelContext(); return new ResumeComponentResponseHandler(doOperationInvoke(operationContext, request, streamResponseHandler)); } @Override public SendConfigurationValidityReportResponseHandler sendConfigurationValidityReport( final SendConfigurationValidityReportRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler) { final SendConfigurationValidityReportOperationContext operationContext = GreengrassCoreIPCServiceModel.getSendConfigurationValidityReportModelContext(); return new SendConfigurationValidityReportResponseHandler(doOperationInvoke(operationContext, request, streamResponseHandler)); } @Override public StopComponentResponseHandler stopComponent(final StopComponentRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler) { final StopComponentOperationContext operationContext = GreengrassCoreIPCServiceModel.getStopComponentModelContext(); return new StopComponentResponseHandler(doOperationInvoke(operationContext, request, streamResponseHandler)); } @Override public SubscribeToCertificateUpdatesResponseHandler subscribeToCertificateUpdates( final SubscribeToCertificateUpdatesRequest request, final Optional<StreamResponseHandler<CertificateUpdateEvent>> streamResponseHandler) { final SubscribeToCertificateUpdatesOperationContext operationContext = GreengrassCoreIPCServiceModel.getSubscribeToCertificateUpdatesModelContext(); return new SubscribeToCertificateUpdatesResponseHandler(doOperationInvoke(operationContext, request, streamResponseHandler)); } @Override public SubscribeToComponentUpdatesResponseHandler subscribeToComponentUpdates( final SubscribeToComponentUpdatesRequest request, final Optional<StreamResponseHandler<ComponentUpdatePolicyEvents>> streamResponseHandler) { final SubscribeToComponentUpdatesOperationContext operationContext = GreengrassCoreIPCServiceModel.getSubscribeToComponentUpdatesModelContext(); return new SubscribeToComponentUpdatesResponseHandler(doOperationInvoke(operationContext, request, streamResponseHandler)); } @Override public SubscribeToConfigurationUpdateResponseHandler subscribeToConfigurationUpdate( final SubscribeToConfigurationUpdateRequest request, final Optional<StreamResponseHandler<ConfigurationUpdateEvents>> streamResponseHandler) { final SubscribeToConfigurationUpdateOperationContext operationContext = GreengrassCoreIPCServiceModel.getSubscribeToConfigurationUpdateModelContext(); return new SubscribeToConfigurationUpdateResponseHandler(doOperationInvoke(operationContext, request, streamResponseHandler)); } @Override public SubscribeToIoTCoreResponseHandler subscribeToIoTCore( final SubscribeToIoTCoreRequest request, final Optional<StreamResponseHandler<IoTCoreMessage>> streamResponseHandler) { final SubscribeToIoTCoreOperationContext operationContext = GreengrassCoreIPCServiceModel.getSubscribeToIoTCoreModelContext(); return new SubscribeToIoTCoreResponseHandler(doOperationInvoke(operationContext, request, streamResponseHandler)); } @Override public SubscribeToTopicResponseHandler subscribeToTopic(final SubscribeToTopicRequest request, final Optional<StreamResponseHandler<SubscriptionResponseMessage>> streamResponseHandler) { final SubscribeToTopicOperationContext operationContext = GreengrassCoreIPCServiceModel.getSubscribeToTopicModelContext(); return new SubscribeToTopicResponseHandler(doOperationInvoke(operationContext, request, streamResponseHandler)); } @Override public SubscribeToValidateConfigurationUpdatesResponseHandler subscribeToValidateConfigurationUpdates( final SubscribeToValidateConfigurationUpdatesRequest request, final Optional<StreamResponseHandler<ValidateConfigurationUpdateEvents>> streamResponseHandler) { final SubscribeToValidateConfigurationUpdatesOperationContext operationContext = GreengrassCoreIPCServiceModel.getSubscribeToValidateConfigurationUpdatesModelContext(); return new SubscribeToValidateConfigurationUpdatesResponseHandler(doOperationInvoke(operationContext, request, streamResponseHandler)); } @Override public UpdateConfigurationResponseHandler updateConfiguration( final UpdateConfigurationRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler) { final UpdateConfigurationOperationContext operationContext = GreengrassCoreIPCServiceModel.getUpdateConfigurationModelContext(); return new UpdateConfigurationResponseHandler(doOperationInvoke(operationContext, request, streamResponseHandler)); } @Override public UpdateStateResponseHandler updateState(final UpdateStateRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler) { final UpdateStateOperationContext operationContext = GreengrassCoreIPCServiceModel.getUpdateStateModelContext(); return new UpdateStateResponseHandler(doOperationInvoke(operationContext, request, streamResponseHandler)); } @Override public UpdateThingShadowResponseHandler updateThingShadow(final UpdateThingShadowRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler) { final UpdateThingShadowOperationContext operationContext = GreengrassCoreIPCServiceModel.getUpdateThingShadowModelContext(); return new UpdateThingShadowResponseHandler(doOperationInvoke(operationContext, request, streamResponseHandler)); } @Override public ValidateAuthorizationTokenResponseHandler validateAuthorizationToken( final ValidateAuthorizationTokenRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler) { final ValidateAuthorizationTokenOperationContext operationContext = GreengrassCoreIPCServiceModel.getValidateAuthorizationTokenModelContext(); return new ValidateAuthorizationTokenResponseHandler(doOperationInvoke(operationContext, request, streamResponseHandler)); } @Override public VerifyClientDeviceIdentityResponseHandler verifyClientDeviceIdentity( final VerifyClientDeviceIdentityRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler) { final VerifyClientDeviceIdentityOperationContext operationContext = GreengrassCoreIPCServiceModel.getVerifyClientDeviceIdentityModelContext(); return new VerifyClientDeviceIdentityResponseHandler(doOperationInvoke(operationContext, request, streamResponseHandler)); } }
5,381
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws/greengrass/CreateLocalDeploymentResponseHandler.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass; import java.lang.Override; import java.lang.Void; import java.util.concurrent.CompletableFuture; import software.amazon.awssdk.aws.greengrass.model.CreateLocalDeploymentResponse; import software.amazon.awssdk.eventstreamrpc.OperationResponse; import software.amazon.awssdk.eventstreamrpc.StreamResponse; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public final class CreateLocalDeploymentResponseHandler implements StreamResponse<CreateLocalDeploymentResponse, EventStreamJsonMessage> { private final OperationResponse<CreateLocalDeploymentResponse, EventStreamJsonMessage> operationResponse; public CreateLocalDeploymentResponseHandler( final OperationResponse<CreateLocalDeploymentResponse, EventStreamJsonMessage> operationResponse) { this.operationResponse = operationResponse; } @Override public CompletableFuture<Void> getRequestFlushFuture() { return operationResponse.getRequestFlushFuture(); } @Override public CompletableFuture<CreateLocalDeploymentResponse> getResponse() { return operationResponse.getResponse(); } @Override public CompletableFuture<Void> sendStreamEvent(final EventStreamJsonMessage event) { return operationResponse.sendStreamEvent(event); } @Override public CompletableFuture<Void> closeStream() { return operationResponse.closeStream(); } @Override public boolean isClosed() { return operationResponse.isClosed(); } }
5,382
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws/greengrass/DeleteThingShadowResponseHandler.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass; import java.lang.Override; import java.lang.Void; import java.util.concurrent.CompletableFuture; import software.amazon.awssdk.aws.greengrass.model.DeleteThingShadowResponse; import software.amazon.awssdk.eventstreamrpc.OperationResponse; import software.amazon.awssdk.eventstreamrpc.StreamResponse; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public final class DeleteThingShadowResponseHandler implements StreamResponse<DeleteThingShadowResponse, EventStreamJsonMessage> { private final OperationResponse<DeleteThingShadowResponse, EventStreamJsonMessage> operationResponse; public DeleteThingShadowResponseHandler( final OperationResponse<DeleteThingShadowResponse, EventStreamJsonMessage> operationResponse) { this.operationResponse = operationResponse; } @Override public CompletableFuture<Void> getRequestFlushFuture() { return operationResponse.getRequestFlushFuture(); } @Override public CompletableFuture<DeleteThingShadowResponse> getResponse() { return operationResponse.getResponse(); } @Override public CompletableFuture<Void> sendStreamEvent(final EventStreamJsonMessage event) { return operationResponse.sendStreamEvent(event); } @Override public CompletableFuture<Void> closeStream() { return operationResponse.closeStream(); } @Override public boolean isClosed() { return operationResponse.isClosed(); } }
5,383
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws/greengrass/ListComponentsResponseHandler.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass; import java.lang.Override; import java.lang.Void; import java.util.concurrent.CompletableFuture; import software.amazon.awssdk.aws.greengrass.model.ListComponentsResponse; import software.amazon.awssdk.eventstreamrpc.OperationResponse; import software.amazon.awssdk.eventstreamrpc.StreamResponse; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public final class ListComponentsResponseHandler implements StreamResponse<ListComponentsResponse, EventStreamJsonMessage> { private final OperationResponse<ListComponentsResponse, EventStreamJsonMessage> operationResponse; public ListComponentsResponseHandler( final OperationResponse<ListComponentsResponse, EventStreamJsonMessage> operationResponse) { this.operationResponse = operationResponse; } @Override public CompletableFuture<Void> getRequestFlushFuture() { return operationResponse.getRequestFlushFuture(); } @Override public CompletableFuture<ListComponentsResponse> getResponse() { return operationResponse.getResponse(); } @Override public CompletableFuture<Void> sendStreamEvent(final EventStreamJsonMessage event) { return operationResponse.sendStreamEvent(event); } @Override public CompletableFuture<Void> closeStream() { return operationResponse.closeStream(); } @Override public boolean isClosed() { return operationResponse.isClosed(); } }
5,384
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws/greengrass/GetConfigurationResponseHandler.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass; import java.lang.Override; import java.lang.Void; import java.util.concurrent.CompletableFuture; import software.amazon.awssdk.aws.greengrass.model.GetConfigurationResponse; import software.amazon.awssdk.eventstreamrpc.OperationResponse; import software.amazon.awssdk.eventstreamrpc.StreamResponse; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public final class GetConfigurationResponseHandler implements StreamResponse<GetConfigurationResponse, EventStreamJsonMessage> { private final OperationResponse<GetConfigurationResponse, EventStreamJsonMessage> operationResponse; public GetConfigurationResponseHandler( final OperationResponse<GetConfigurationResponse, EventStreamJsonMessage> operationResponse) { this.operationResponse = operationResponse; } @Override public CompletableFuture<Void> getRequestFlushFuture() { return operationResponse.getRequestFlushFuture(); } @Override public CompletableFuture<GetConfigurationResponse> getResponse() { return operationResponse.getResponse(); } @Override public CompletableFuture<Void> sendStreamEvent(final EventStreamJsonMessage event) { return operationResponse.sendStreamEvent(event); } @Override public CompletableFuture<Void> closeStream() { return operationResponse.closeStream(); } @Override public boolean isClosed() { return operationResponse.isClosed(); } }
5,385
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws/greengrass/CancelLocalDeploymentResponseHandler.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass; import java.lang.Override; import java.lang.Void; import java.util.concurrent.CompletableFuture; import software.amazon.awssdk.aws.greengrass.model.CancelLocalDeploymentResponse; import software.amazon.awssdk.eventstreamrpc.OperationResponse; import software.amazon.awssdk.eventstreamrpc.StreamResponse; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public final class CancelLocalDeploymentResponseHandler implements StreamResponse<CancelLocalDeploymentResponse, EventStreamJsonMessage> { private final OperationResponse<CancelLocalDeploymentResponse, EventStreamJsonMessage> operationResponse; public CancelLocalDeploymentResponseHandler( final OperationResponse<CancelLocalDeploymentResponse, EventStreamJsonMessage> operationResponse) { this.operationResponse = operationResponse; } @Override public CompletableFuture<Void> getRequestFlushFuture() { return operationResponse.getRequestFlushFuture(); } @Override public CompletableFuture<CancelLocalDeploymentResponse> getResponse() { return operationResponse.getResponse(); } @Override public CompletableFuture<Void> sendStreamEvent(final EventStreamJsonMessage event) { return operationResponse.sendStreamEvent(event); } @Override public CompletableFuture<Void> closeStream() { return operationResponse.closeStream(); } @Override public boolean isClosed() { return operationResponse.isClosed(); } }
5,386
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws/greengrass/UpdateStateResponseHandler.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass; import java.lang.Override; import java.lang.Void; import java.util.concurrent.CompletableFuture; import software.amazon.awssdk.aws.greengrass.model.UpdateStateResponse; import software.amazon.awssdk.eventstreamrpc.OperationResponse; import software.amazon.awssdk.eventstreamrpc.StreamResponse; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public final class UpdateStateResponseHandler implements StreamResponse<UpdateStateResponse, EventStreamJsonMessage> { private final OperationResponse<UpdateStateResponse, EventStreamJsonMessage> operationResponse; public UpdateStateResponseHandler( final OperationResponse<UpdateStateResponse, EventStreamJsonMessage> operationResponse) { this.operationResponse = operationResponse; } @Override public CompletableFuture<Void> getRequestFlushFuture() { return operationResponse.getRequestFlushFuture(); } @Override public CompletableFuture<UpdateStateResponse> getResponse() { return operationResponse.getResponse(); } @Override public CompletableFuture<Void> sendStreamEvent(final EventStreamJsonMessage event) { return operationResponse.sendStreamEvent(event); } @Override public CompletableFuture<Void> closeStream() { return operationResponse.closeStream(); } @Override public boolean isClosed() { return operationResponse.isClosed(); } }
5,387
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws/greengrass/GetSecretValueResponseHandler.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass; import java.lang.Override; import java.lang.Void; import java.util.concurrent.CompletableFuture; import software.amazon.awssdk.aws.greengrass.model.GetSecretValueResponse; import software.amazon.awssdk.eventstreamrpc.OperationResponse; import software.amazon.awssdk.eventstreamrpc.StreamResponse; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public final class GetSecretValueResponseHandler implements StreamResponse<GetSecretValueResponse, EventStreamJsonMessage> { private final OperationResponse<GetSecretValueResponse, EventStreamJsonMessage> operationResponse; public GetSecretValueResponseHandler( final OperationResponse<GetSecretValueResponse, EventStreamJsonMessage> operationResponse) { this.operationResponse = operationResponse; } @Override public CompletableFuture<Void> getRequestFlushFuture() { return operationResponse.getRequestFlushFuture(); } @Override public CompletableFuture<GetSecretValueResponse> getResponse() { return operationResponse.getResponse(); } @Override public CompletableFuture<Void> sendStreamEvent(final EventStreamJsonMessage event) { return operationResponse.sendStreamEvent(event); } @Override public CompletableFuture<Void> closeStream() { return operationResponse.closeStream(); } @Override public boolean isClosed() { return operationResponse.isClosed(); } }
5,388
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws/greengrass/ListLocalDeploymentsResponseHandler.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass; import java.lang.Override; import java.lang.Void; import java.util.concurrent.CompletableFuture; import software.amazon.awssdk.aws.greengrass.model.ListLocalDeploymentsResponse; import software.amazon.awssdk.eventstreamrpc.OperationResponse; import software.amazon.awssdk.eventstreamrpc.StreamResponse; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public final class ListLocalDeploymentsResponseHandler implements StreamResponse<ListLocalDeploymentsResponse, EventStreamJsonMessage> { private final OperationResponse<ListLocalDeploymentsResponse, EventStreamJsonMessage> operationResponse; public ListLocalDeploymentsResponseHandler( final OperationResponse<ListLocalDeploymentsResponse, EventStreamJsonMessage> operationResponse) { this.operationResponse = operationResponse; } @Override public CompletableFuture<Void> getRequestFlushFuture() { return operationResponse.getRequestFlushFuture(); } @Override public CompletableFuture<ListLocalDeploymentsResponse> getResponse() { return operationResponse.getResponse(); } @Override public CompletableFuture<Void> sendStreamEvent(final EventStreamJsonMessage event) { return operationResponse.sendStreamEvent(event); } @Override public CompletableFuture<Void> closeStream() { return operationResponse.closeStream(); } @Override public boolean isClosed() { return operationResponse.isClosed(); } }
5,389
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws/greengrass/CreateDebugPasswordResponseHandler.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass; import java.lang.Override; import java.lang.Void; import java.util.concurrent.CompletableFuture; import software.amazon.awssdk.aws.greengrass.model.CreateDebugPasswordResponse; import software.amazon.awssdk.eventstreamrpc.OperationResponse; import software.amazon.awssdk.eventstreamrpc.StreamResponse; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public final class CreateDebugPasswordResponseHandler implements StreamResponse<CreateDebugPasswordResponse, EventStreamJsonMessage> { private final OperationResponse<CreateDebugPasswordResponse, EventStreamJsonMessage> operationResponse; public CreateDebugPasswordResponseHandler( final OperationResponse<CreateDebugPasswordResponse, EventStreamJsonMessage> operationResponse) { this.operationResponse = operationResponse; } @Override public CompletableFuture<Void> getRequestFlushFuture() { return operationResponse.getRequestFlushFuture(); } @Override public CompletableFuture<CreateDebugPasswordResponse> getResponse() { return operationResponse.getResponse(); } @Override public CompletableFuture<Void> sendStreamEvent(final EventStreamJsonMessage event) { return operationResponse.sendStreamEvent(event); } @Override public CompletableFuture<Void> closeStream() { return operationResponse.closeStream(); } @Override public boolean isClosed() { return operationResponse.isClosed(); } }
5,390
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws/greengrass/GetLocalDeploymentStatusResponseHandler.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass; import java.lang.Override; import java.lang.Void; import java.util.concurrent.CompletableFuture; import software.amazon.awssdk.aws.greengrass.model.GetLocalDeploymentStatusResponse; import software.amazon.awssdk.eventstreamrpc.OperationResponse; import software.amazon.awssdk.eventstreamrpc.StreamResponse; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public final class GetLocalDeploymentStatusResponseHandler implements StreamResponse<GetLocalDeploymentStatusResponse, EventStreamJsonMessage> { private final OperationResponse<GetLocalDeploymentStatusResponse, EventStreamJsonMessage> operationResponse; public GetLocalDeploymentStatusResponseHandler( final OperationResponse<GetLocalDeploymentStatusResponse, EventStreamJsonMessage> operationResponse) { this.operationResponse = operationResponse; } @Override public CompletableFuture<Void> getRequestFlushFuture() { return operationResponse.getRequestFlushFuture(); } @Override public CompletableFuture<GetLocalDeploymentStatusResponse> getResponse() { return operationResponse.getResponse(); } @Override public CompletableFuture<Void> sendStreamEvent(final EventStreamJsonMessage event) { return operationResponse.sendStreamEvent(event); } @Override public CompletableFuture<Void> closeStream() { return operationResponse.closeStream(); } @Override public boolean isClosed() { return operationResponse.isClosed(); } }
5,391
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws/greengrass/RestartComponentResponseHandler.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass; import java.lang.Override; import java.lang.Void; import java.util.concurrent.CompletableFuture; import software.amazon.awssdk.aws.greengrass.model.RestartComponentResponse; import software.amazon.awssdk.eventstreamrpc.OperationResponse; import software.amazon.awssdk.eventstreamrpc.StreamResponse; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public final class RestartComponentResponseHandler implements StreamResponse<RestartComponentResponse, EventStreamJsonMessage> { private final OperationResponse<RestartComponentResponse, EventStreamJsonMessage> operationResponse; public RestartComponentResponseHandler( final OperationResponse<RestartComponentResponse, EventStreamJsonMessage> operationResponse) { this.operationResponse = operationResponse; } @Override public CompletableFuture<Void> getRequestFlushFuture() { return operationResponse.getRequestFlushFuture(); } @Override public CompletableFuture<RestartComponentResponse> getResponse() { return operationResponse.getResponse(); } @Override public CompletableFuture<Void> sendStreamEvent(final EventStreamJsonMessage event) { return operationResponse.sendStreamEvent(event); } @Override public CompletableFuture<Void> closeStream() { return operationResponse.closeStream(); } @Override public boolean isClosed() { return operationResponse.isClosed(); } }
5,392
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws/greengrass/GreengrassCoreIPC.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass; import java.util.Optional; import software.amazon.awssdk.aws.greengrass.model.AuthorizeClientDeviceActionRequest; import software.amazon.awssdk.aws.greengrass.model.CancelLocalDeploymentRequest; import software.amazon.awssdk.aws.greengrass.model.CertificateUpdateEvent; import software.amazon.awssdk.aws.greengrass.model.ComponentUpdatePolicyEvents; import software.amazon.awssdk.aws.greengrass.model.ConfigurationUpdateEvents; import software.amazon.awssdk.aws.greengrass.model.CreateDebugPasswordRequest; import software.amazon.awssdk.aws.greengrass.model.CreateLocalDeploymentRequest; import software.amazon.awssdk.aws.greengrass.model.DeferComponentUpdateRequest; import software.amazon.awssdk.aws.greengrass.model.DeleteThingShadowRequest; import software.amazon.awssdk.aws.greengrass.model.GetClientDeviceAuthTokenRequest; import software.amazon.awssdk.aws.greengrass.model.GetComponentDetailsRequest; import software.amazon.awssdk.aws.greengrass.model.GetConfigurationRequest; import software.amazon.awssdk.aws.greengrass.model.GetLocalDeploymentStatusRequest; import software.amazon.awssdk.aws.greengrass.model.GetSecretValueRequest; import software.amazon.awssdk.aws.greengrass.model.GetThingShadowRequest; import software.amazon.awssdk.aws.greengrass.model.IoTCoreMessage; import software.amazon.awssdk.aws.greengrass.model.ListComponentsRequest; import software.amazon.awssdk.aws.greengrass.model.ListLocalDeploymentsRequest; import software.amazon.awssdk.aws.greengrass.model.ListNamedShadowsForThingRequest; import software.amazon.awssdk.aws.greengrass.model.PauseComponentRequest; import software.amazon.awssdk.aws.greengrass.model.PublishToIoTCoreRequest; import software.amazon.awssdk.aws.greengrass.model.PublishToTopicRequest; import software.amazon.awssdk.aws.greengrass.model.PutComponentMetricRequest; import software.amazon.awssdk.aws.greengrass.model.RestartComponentRequest; import software.amazon.awssdk.aws.greengrass.model.ResumeComponentRequest; import software.amazon.awssdk.aws.greengrass.model.SendConfigurationValidityReportRequest; import software.amazon.awssdk.aws.greengrass.model.StopComponentRequest; import software.amazon.awssdk.aws.greengrass.model.SubscribeToCertificateUpdatesRequest; import software.amazon.awssdk.aws.greengrass.model.SubscribeToComponentUpdatesRequest; import software.amazon.awssdk.aws.greengrass.model.SubscribeToConfigurationUpdateRequest; import software.amazon.awssdk.aws.greengrass.model.SubscribeToIoTCoreRequest; import software.amazon.awssdk.aws.greengrass.model.SubscribeToTopicRequest; import software.amazon.awssdk.aws.greengrass.model.SubscribeToValidateConfigurationUpdatesRequest; import software.amazon.awssdk.aws.greengrass.model.SubscriptionResponseMessage; import software.amazon.awssdk.aws.greengrass.model.UpdateConfigurationRequest; import software.amazon.awssdk.aws.greengrass.model.UpdateStateRequest; import software.amazon.awssdk.aws.greengrass.model.UpdateThingShadowRequest; import software.amazon.awssdk.aws.greengrass.model.ValidateAuthorizationTokenRequest; import software.amazon.awssdk.aws.greengrass.model.ValidateConfigurationUpdateEvents; import software.amazon.awssdk.aws.greengrass.model.VerifyClientDeviceIdentityRequest; import software.amazon.awssdk.eventstreamrpc.StreamResponseHandler; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public interface GreengrassCoreIPC { AuthorizeClientDeviceActionResponseHandler authorizeClientDeviceAction( final AuthorizeClientDeviceActionRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler); CancelLocalDeploymentResponseHandler cancelLocalDeployment( final CancelLocalDeploymentRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler); CreateDebugPasswordResponseHandler createDebugPassword(final CreateDebugPasswordRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler); CreateLocalDeploymentResponseHandler createLocalDeployment( final CreateLocalDeploymentRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler); DeferComponentUpdateResponseHandler deferComponentUpdate( final DeferComponentUpdateRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler); DeleteThingShadowResponseHandler deleteThingShadow(final DeleteThingShadowRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler); GetClientDeviceAuthTokenResponseHandler getClientDeviceAuthToken( final GetClientDeviceAuthTokenRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler); GetComponentDetailsResponseHandler getComponentDetails(final GetComponentDetailsRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler); GetConfigurationResponseHandler getConfiguration(final GetConfigurationRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler); GetLocalDeploymentStatusResponseHandler getLocalDeploymentStatus( final GetLocalDeploymentStatusRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler); GetSecretValueResponseHandler getSecretValue(final GetSecretValueRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler); GetThingShadowResponseHandler getThingShadow(final GetThingShadowRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler); ListComponentsResponseHandler listComponents(final ListComponentsRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler); ListLocalDeploymentsResponseHandler listLocalDeployments( final ListLocalDeploymentsRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler); ListNamedShadowsForThingResponseHandler listNamedShadowsForThing( final ListNamedShadowsForThingRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler); PauseComponentResponseHandler pauseComponent(final PauseComponentRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler); PublishToIoTCoreResponseHandler publishToIoTCore(final PublishToIoTCoreRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler); PublishToTopicResponseHandler publishToTopic(final PublishToTopicRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler); PutComponentMetricResponseHandler putComponentMetric(final PutComponentMetricRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler); RestartComponentResponseHandler restartComponent(final RestartComponentRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler); ResumeComponentResponseHandler resumeComponent(final ResumeComponentRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler); SendConfigurationValidityReportResponseHandler sendConfigurationValidityReport( final SendConfigurationValidityReportRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler); StopComponentResponseHandler stopComponent(final StopComponentRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler); SubscribeToCertificateUpdatesResponseHandler subscribeToCertificateUpdates( final SubscribeToCertificateUpdatesRequest request, final Optional<StreamResponseHandler<CertificateUpdateEvent>> streamResponseHandler); SubscribeToComponentUpdatesResponseHandler subscribeToComponentUpdates( final SubscribeToComponentUpdatesRequest request, final Optional<StreamResponseHandler<ComponentUpdatePolicyEvents>> streamResponseHandler); SubscribeToConfigurationUpdateResponseHandler subscribeToConfigurationUpdate( final SubscribeToConfigurationUpdateRequest request, final Optional<StreamResponseHandler<ConfigurationUpdateEvents>> streamResponseHandler); SubscribeToIoTCoreResponseHandler subscribeToIoTCore(final SubscribeToIoTCoreRequest request, final Optional<StreamResponseHandler<IoTCoreMessage>> streamResponseHandler); SubscribeToTopicResponseHandler subscribeToTopic(final SubscribeToTopicRequest request, final Optional<StreamResponseHandler<SubscriptionResponseMessage>> streamResponseHandler); SubscribeToValidateConfigurationUpdatesResponseHandler subscribeToValidateConfigurationUpdates( final SubscribeToValidateConfigurationUpdatesRequest request, final Optional<StreamResponseHandler<ValidateConfigurationUpdateEvents>> streamResponseHandler); UpdateConfigurationResponseHandler updateConfiguration(final UpdateConfigurationRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler); UpdateStateResponseHandler updateState(final UpdateStateRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler); UpdateThingShadowResponseHandler updateThingShadow(final UpdateThingShadowRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler); ValidateAuthorizationTokenResponseHandler validateAuthorizationToken( final ValidateAuthorizationTokenRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler); VerifyClientDeviceIdentityResponseHandler verifyClientDeviceIdentity( final VerifyClientDeviceIdentityRequest request, final Optional<StreamResponseHandler<EventStreamJsonMessage>> streamResponseHandler); }
5,393
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws/greengrass/PauseComponentResponseHandler.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass; import java.lang.Override; import java.lang.Void; import java.util.concurrent.CompletableFuture; import software.amazon.awssdk.aws.greengrass.model.PauseComponentResponse; import software.amazon.awssdk.eventstreamrpc.OperationResponse; import software.amazon.awssdk.eventstreamrpc.StreamResponse; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public final class PauseComponentResponseHandler implements StreamResponse<PauseComponentResponse, EventStreamJsonMessage> { private final OperationResponse<PauseComponentResponse, EventStreamJsonMessage> operationResponse; public PauseComponentResponseHandler( final OperationResponse<PauseComponentResponse, EventStreamJsonMessage> operationResponse) { this.operationResponse = operationResponse; } @Override public CompletableFuture<Void> getRequestFlushFuture() { return operationResponse.getRequestFlushFuture(); } @Override public CompletableFuture<PauseComponentResponse> getResponse() { return operationResponse.getResponse(); } @Override public CompletableFuture<Void> sendStreamEvent(final EventStreamJsonMessage event) { return operationResponse.sendStreamEvent(event); } @Override public CompletableFuture<Void> closeStream() { return operationResponse.closeStream(); } @Override public boolean isClosed() { return operationResponse.isClosed(); } }
5,394
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws/greengrass/GetClientDeviceAuthTokenResponseHandler.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass; import java.lang.Override; import java.lang.Void; import java.util.concurrent.CompletableFuture; import software.amazon.awssdk.aws.greengrass.model.GetClientDeviceAuthTokenResponse; import software.amazon.awssdk.eventstreamrpc.OperationResponse; import software.amazon.awssdk.eventstreamrpc.StreamResponse; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public final class GetClientDeviceAuthTokenResponseHandler implements StreamResponse<GetClientDeviceAuthTokenResponse, EventStreamJsonMessage> { private final OperationResponse<GetClientDeviceAuthTokenResponse, EventStreamJsonMessage> operationResponse; public GetClientDeviceAuthTokenResponseHandler( final OperationResponse<GetClientDeviceAuthTokenResponse, EventStreamJsonMessage> operationResponse) { this.operationResponse = operationResponse; } @Override public CompletableFuture<Void> getRequestFlushFuture() { return operationResponse.getRequestFlushFuture(); } @Override public CompletableFuture<GetClientDeviceAuthTokenResponse> getResponse() { return operationResponse.getResponse(); } @Override public CompletableFuture<Void> sendStreamEvent(final EventStreamJsonMessage event) { return operationResponse.sendStreamEvent(event); } @Override public CompletableFuture<Void> closeStream() { return operationResponse.closeStream(); } @Override public boolean isClosed() { return operationResponse.isClosed(); } }
5,395
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws/greengrass/UpdateThingShadowResponseHandler.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass; import java.lang.Override; import java.lang.Void; import java.util.concurrent.CompletableFuture; import software.amazon.awssdk.aws.greengrass.model.UpdateThingShadowResponse; import software.amazon.awssdk.eventstreamrpc.OperationResponse; import software.amazon.awssdk.eventstreamrpc.StreamResponse; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public final class UpdateThingShadowResponseHandler implements StreamResponse<UpdateThingShadowResponse, EventStreamJsonMessage> { private final OperationResponse<UpdateThingShadowResponse, EventStreamJsonMessage> operationResponse; public UpdateThingShadowResponseHandler( final OperationResponse<UpdateThingShadowResponse, EventStreamJsonMessage> operationResponse) { this.operationResponse = operationResponse; } @Override public CompletableFuture<Void> getRequestFlushFuture() { return operationResponse.getRequestFlushFuture(); } @Override public CompletableFuture<UpdateThingShadowResponse> getResponse() { return operationResponse.getResponse(); } @Override public CompletableFuture<Void> sendStreamEvent(final EventStreamJsonMessage event) { return operationResponse.sendStreamEvent(event); } @Override public CompletableFuture<Void> closeStream() { return operationResponse.closeStream(); } @Override public boolean isClosed() { return operationResponse.isClosed(); } }
5,396
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws/greengrass/SubscribeToCertificateUpdatesResponseHandler.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass; import java.lang.Override; import java.lang.Void; import java.util.concurrent.CompletableFuture; import software.amazon.awssdk.aws.greengrass.model.SubscribeToCertificateUpdatesResponse; import software.amazon.awssdk.eventstreamrpc.OperationResponse; import software.amazon.awssdk.eventstreamrpc.StreamResponse; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public final class SubscribeToCertificateUpdatesResponseHandler implements StreamResponse<SubscribeToCertificateUpdatesResponse, EventStreamJsonMessage> { private final OperationResponse<SubscribeToCertificateUpdatesResponse, EventStreamJsonMessage> operationResponse; public SubscribeToCertificateUpdatesResponseHandler( final OperationResponse<SubscribeToCertificateUpdatesResponse, EventStreamJsonMessage> operationResponse) { this.operationResponse = operationResponse; } @Override public CompletableFuture<Void> getRequestFlushFuture() { return operationResponse.getRequestFlushFuture(); } @Override public CompletableFuture<SubscribeToCertificateUpdatesResponse> getResponse() { return operationResponse.getResponse(); } @Override public CompletableFuture<Void> sendStreamEvent(final EventStreamJsonMessage event) { return operationResponse.sendStreamEvent(event); } @Override public CompletableFuture<Void> closeStream() { return operationResponse.closeStream(); } @Override public boolean isClosed() { return operationResponse.isClosed(); } }
5,397
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws/greengrass/AuthorizeClientDeviceActionResponseHandler.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass; import java.lang.Override; import java.lang.Void; import java.util.concurrent.CompletableFuture; import software.amazon.awssdk.aws.greengrass.model.AuthorizeClientDeviceActionResponse; import software.amazon.awssdk.eventstreamrpc.OperationResponse; import software.amazon.awssdk.eventstreamrpc.StreamResponse; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public final class AuthorizeClientDeviceActionResponseHandler implements StreamResponse<AuthorizeClientDeviceActionResponse, EventStreamJsonMessage> { private final OperationResponse<AuthorizeClientDeviceActionResponse, EventStreamJsonMessage> operationResponse; public AuthorizeClientDeviceActionResponseHandler( final OperationResponse<AuthorizeClientDeviceActionResponse, EventStreamJsonMessage> operationResponse) { this.operationResponse = operationResponse; } @Override public CompletableFuture<Void> getRequestFlushFuture() { return operationResponse.getRequestFlushFuture(); } @Override public CompletableFuture<AuthorizeClientDeviceActionResponse> getResponse() { return operationResponse.getResponse(); } @Override public CompletableFuture<Void> sendStreamEvent(final EventStreamJsonMessage event) { return operationResponse.sendStreamEvent(event); } @Override public CompletableFuture<Void> closeStream() { return operationResponse.closeStream(); } @Override public boolean isClosed() { return operationResponse.isClosed(); } }
5,398
0
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws
Create_ds/aws-iot-device-sdk-java-v2/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws/greengrass/SubscribeToValidateConfigurationUpdatesResponseHandler.java
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated. */ package software.amazon.awssdk.aws.greengrass; import java.lang.Override; import java.lang.Void; import java.util.concurrent.CompletableFuture; import software.amazon.awssdk.aws.greengrass.model.SubscribeToValidateConfigurationUpdatesResponse; import software.amazon.awssdk.eventstreamrpc.OperationResponse; import software.amazon.awssdk.eventstreamrpc.StreamResponse; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; public final class SubscribeToValidateConfigurationUpdatesResponseHandler implements StreamResponse<SubscribeToValidateConfigurationUpdatesResponse, EventStreamJsonMessage> { private final OperationResponse<SubscribeToValidateConfigurationUpdatesResponse, EventStreamJsonMessage> operationResponse; public SubscribeToValidateConfigurationUpdatesResponseHandler( final OperationResponse<SubscribeToValidateConfigurationUpdatesResponse, EventStreamJsonMessage> operationResponse) { this.operationResponse = operationResponse; } @Override public CompletableFuture<Void> getRequestFlushFuture() { return operationResponse.getRequestFlushFuture(); } @Override public CompletableFuture<SubscribeToValidateConfigurationUpdatesResponse> getResponse() { return operationResponse.getResponse(); } @Override public CompletableFuture<Void> sendStreamEvent(final EventStreamJsonMessage event) { return operationResponse.sendStreamEvent(event); } @Override public CompletableFuture<Void> closeStream() { return operationResponse.closeStream(); } @Override public boolean isClosed() { return operationResponse.isClosed(); } }
5,399