
software.amazon.cryptography.keystore.model.GetActiveBranchKeyOutput 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;
/**
* Outputs for getting a Branch Key's ACTIVE version.
*/
public class GetActiveBranchKeyOutput {
/**
* The materials for the Branch Key.
*/
private final BranchKeyMaterials branchKeyMaterials;
protected GetActiveBranchKeyOutput(BuilderImpl builder) {
this.branchKeyMaterials = builder.branchKeyMaterials();
}
/**
* @return The materials for the Branch Key.
*/
public BranchKeyMaterials branchKeyMaterials() {
return this.branchKeyMaterials;
}
public Builder toBuilder() {
return new BuilderImpl(this);
}
public static Builder builder() {
return new BuilderImpl();
}
public interface Builder {
/**
* @param branchKeyMaterials The materials for the Branch Key.
*/
Builder branchKeyMaterials(BranchKeyMaterials branchKeyMaterials);
/**
* @return The materials for the Branch Key.
*/
BranchKeyMaterials branchKeyMaterials();
GetActiveBranchKeyOutput build();
}
static class BuilderImpl implements Builder {
protected BranchKeyMaterials branchKeyMaterials;
protected BuilderImpl() {}
protected BuilderImpl(GetActiveBranchKeyOutput model) {
this.branchKeyMaterials = model.branchKeyMaterials();
}
public Builder branchKeyMaterials(BranchKeyMaterials branchKeyMaterials) {
this.branchKeyMaterials = branchKeyMaterials;
return this;
}
public BranchKeyMaterials branchKeyMaterials() {
return this.branchKeyMaterials;
}
public GetActiveBranchKeyOutput build() {
if (Objects.isNull(this.branchKeyMaterials())) {
throw new IllegalArgumentException(
"Missing value for required field `branchKeyMaterials`"
);
}
return new GetActiveBranchKeyOutput(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy