
software.amazon.cryptography.keystore.model.VersionKeyInput Maven / Gradle / Ivy
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// Do not modify this file. This file is machine generated, and any changes to it will be overwritten.
package software.amazon.cryptography.keystore.model;
import java.util.Objects;
/**
* Inputs for versioning a Branch Key.
*/
public class VersionKeyInput {
/**
* The identifier for the Branch Key to be versioned.
*/
private final String branchKeyIdentifier;
protected VersionKeyInput(BuilderImpl builder) {
this.branchKeyIdentifier = builder.branchKeyIdentifier();
}
/**
* @return The identifier for the Branch Key to be versioned.
*/
public String branchKeyIdentifier() {
return this.branchKeyIdentifier;
}
public Builder toBuilder() {
return new BuilderImpl(this);
}
public static Builder builder() {
return new BuilderImpl();
}
public interface Builder {
/**
* @param branchKeyIdentifier The identifier for the Branch Key to be versioned.
*/
Builder branchKeyIdentifier(String branchKeyIdentifier);
/**
* @return The identifier for the Branch Key to be versioned.
*/
String branchKeyIdentifier();
VersionKeyInput build();
}
static class BuilderImpl implements Builder {
protected String branchKeyIdentifier;
protected BuilderImpl() {}
protected BuilderImpl(VersionKeyInput model) {
this.branchKeyIdentifier = model.branchKeyIdentifier();
}
public Builder branchKeyIdentifier(String branchKeyIdentifier) {
this.branchKeyIdentifier = branchKeyIdentifier;
return this;
}
public String branchKeyIdentifier() {
return this.branchKeyIdentifier;
}
public VersionKeyInput build() {
if (Objects.isNull(this.branchKeyIdentifier())) {
throw new IllegalArgumentException(
"Missing value for required field `branchKeyIdentifier`"
);
}
return new VersionKeyInput(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy