
software.amazon.awssdk.services.sms.model.CreateReplicationJobResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of servermigration Show documentation
Show all versions of servermigration Show documentation
The AWS Java SDK for AWS Server Migration module holds the client classes that are used for
communicating with AWS Server Migration Service
The newest version!
/*
* Copyright 2013-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package software.amazon.awssdk.services.sms.model;
import java.util.Objects;
import java.util.Optional;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.utils.ToString;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
/**
*/
@Generated("software.amazon.awssdk:codegen")
public final class CreateReplicationJobResponse extends SmsResponse implements
ToCopyableBuilder {
private final String replicationJobId;
private CreateReplicationJobResponse(BuilderImpl builder) {
super(builder);
this.replicationJobId = builder.replicationJobId;
}
/**
* Returns the value of the ReplicationJobId property for this object.
*
* @return The value of the ReplicationJobId property for this object.
*/
public String replicationJobId() {
return replicationJobId;
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
public static Builder builder() {
return new BuilderImpl();
}
public static Class extends Builder> serializableBuilderClass() {
return BuilderImpl.class;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = 31 * hashCode + Objects.hashCode(replicationJobId());
return hashCode;
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (!(obj instanceof CreateReplicationJobResponse)) {
return false;
}
CreateReplicationJobResponse other = (CreateReplicationJobResponse) obj;
return Objects.equals(replicationJobId(), other.replicationJobId());
}
@Override
public String toString() {
return ToString.builder("CreateReplicationJobResponse").add("ReplicationJobId", replicationJobId()).build();
}
public Optional getValueForField(String fieldName, Class clazz) {
switch (fieldName) {
case "replicationJobId":
return Optional.ofNullable(clazz.cast(replicationJobId()));
default:
return Optional.empty();
}
}
public interface Builder extends SmsResponse.Builder, CopyableBuilder {
/**
* Sets the value of the ReplicationJobId property for this object.
*
* @param replicationJobId
* The new value for the ReplicationJobId property for this object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder replicationJobId(String replicationJobId);
}
static final class BuilderImpl extends SmsResponse.BuilderImpl implements Builder {
private String replicationJobId;
private BuilderImpl() {
}
private BuilderImpl(CreateReplicationJobResponse model) {
super(model);
replicationJobId(model.replicationJobId);
}
public final String getReplicationJobId() {
return replicationJobId;
}
@Override
public final Builder replicationJobId(String replicationJobId) {
this.replicationJobId = replicationJobId;
return this;
}
public final void setReplicationJobId(String replicationJobId) {
this.replicationJobId = replicationJobId;
}
@Override
public CreateReplicationJobResponse build() {
return new CreateReplicationJobResponse(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy