
com.ibm.cloud.schematics.v1.model.KMSSettingsPrimaryCrk Maven / Gradle / Ivy
/*
* (C) Copyright IBM Corp. 2021.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License 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 com.ibm.cloud.schematics.v1.model;
import com.google.gson.annotations.SerializedName;
import com.ibm.cloud.sdk.core.service.model.GenericModel;
/**
* Primary CRK details.
*/
public class KMSSettingsPrimaryCrk extends GenericModel {
@SerializedName("kms_name")
protected String kmsName;
@SerializedName("kms_private_endpoint")
protected String kmsPrivateEndpoint;
@SerializedName("key_crn")
protected String keyCrn;
/**
* Builder.
*/
public static class Builder {
private String kmsName;
private String kmsPrivateEndpoint;
private String keyCrn;
private Builder(KMSSettingsPrimaryCrk kmsSettingsPrimaryCrk) {
this.kmsName = kmsSettingsPrimaryCrk.kmsName;
this.kmsPrivateEndpoint = kmsSettingsPrimaryCrk.kmsPrivateEndpoint;
this.keyCrn = kmsSettingsPrimaryCrk.keyCrn;
}
/**
* Instantiates a new builder.
*/
public Builder() {
}
/**
* Builds a KMSSettingsPrimaryCrk.
*
* @return the new KMSSettingsPrimaryCrk instance
*/
public KMSSettingsPrimaryCrk build() {
return new KMSSettingsPrimaryCrk(this);
}
/**
* Set the kmsName.
*
* @param kmsName the kmsName
* @return the KMSSettingsPrimaryCrk builder
*/
public Builder kmsName(String kmsName) {
this.kmsName = kmsName;
return this;
}
/**
* Set the kmsPrivateEndpoint.
*
* @param kmsPrivateEndpoint the kmsPrivateEndpoint
* @return the KMSSettingsPrimaryCrk builder
*/
public Builder kmsPrivateEndpoint(String kmsPrivateEndpoint) {
this.kmsPrivateEndpoint = kmsPrivateEndpoint;
return this;
}
/**
* Set the keyCrn.
*
* @param keyCrn the keyCrn
* @return the KMSSettingsPrimaryCrk builder
*/
public Builder keyCrn(String keyCrn) {
this.keyCrn = keyCrn;
return this;
}
}
protected KMSSettingsPrimaryCrk(Builder builder) {
kmsName = builder.kmsName;
kmsPrivateEndpoint = builder.kmsPrivateEndpoint;
keyCrn = builder.keyCrn;
}
/**
* New builder.
*
* @return a KMSSettingsPrimaryCrk builder
*/
public Builder newBuilder() {
return new Builder(this);
}
/**
* Gets the kmsName.
*
* Primary KMS name.
*
* @return the kmsName
*/
public String kmsName() {
return kmsName;
}
/**
* Gets the kmsPrivateEndpoint.
*
* Primary KMS endpoint.
*
* @return the kmsPrivateEndpoint
*/
public String kmsPrivateEndpoint() {
return kmsPrivateEndpoint;
}
/**
* Gets the keyCrn.
*
* CRN of the Primary Key.
*
* @return the keyCrn
*/
public String keyCrn() {
return keyCrn;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy