Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
698 changes: 698 additions & 0 deletions modules/mtls/src/main/java/com/ibm/cloud/networking/mtls/v1/Mtls.java

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
/*
* (C) Copyright IBM Corp. 2026.
*
* 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.networking.mtls.v1.model;

import java.util.List;

import com.ibm.cloud.sdk.core.service.model.GenericModel;

/**
* Access application response.
*/
public class AccessAppResp extends GenericModel {

protected Boolean success;
protected List<List<String>> errors;
protected List<List<String>> messages;
protected AppResult result;

protected AccessAppResp() { }

/**
* Gets the success.
*
* Was operation successful.
*
* @return the success
*/
public Boolean isSuccess() {
return success;
}

/**
* Gets the errors.
*
* Array of errors encountered.
*
* @return the errors
*/
public List<List<String>> getErrors() {
return errors;
}

/**
* Gets the messages.
*
* Array of messages returned.
*
* @return the messages
*/
public List<List<String>> getMessages() {
return messages;
}

/**
* Gets the result.
*
* Access application details.
*
* @return the result
*/
public AppResult getResult() {
return result;
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
/*
* (C) Copyright IBM Corp. 2026.
*
* 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.networking.mtls.v1.model;

import java.util.List;

import com.ibm.cloud.sdk.core.service.model.GenericModel;

/**
* Access certificate response.
*/
public class AccessCertResp extends GenericModel {

protected Boolean success;
protected List<List<String>> errors;
protected List<List<String>> messages;
protected CertResult result;

protected AccessCertResp() { }

/**
* Gets the success.
*
* Was operation successful.
*
* @return the success
*/
public Boolean isSuccess() {
return success;
}

/**
* Gets the errors.
*
* Array of errors encountered.
*
* @return the errors
*/
public List<List<String>> getErrors() {
return errors;
}

/**
* Gets the messages.
*
* Array of messages returned.
*
* @return the messages
*/
public List<List<String>> getMessages() {
return messages;
}

/**
* Gets the result.
*
* Access certificate details.
*
* @return the result
*/
public CertResult getResult() {
return result;
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
/*
* (C) Copyright IBM Corp. 2026.
*
* 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.networking.mtls.v1.model;

import com.google.gson.annotations.SerializedName;
import com.ibm.cloud.sdk.core.service.model.GenericModel;

/**
* AccessCertSettingsInputArray.
*/
public class AccessCertSettingsInputArray extends GenericModel {

protected String hostname;
@SerializedName("client_certificate_forwarding")
protected Boolean clientCertificateForwarding;

/**
* Builder.
*/
public static class Builder {
private String hostname;
private Boolean clientCertificateForwarding;

/**
* Instantiates a new Builder from an existing AccessCertSettingsInputArray instance.
*
* @param accessCertSettingsInputArray the instance to initialize the Builder with
*/
private Builder(AccessCertSettingsInputArray accessCertSettingsInputArray) {
this.hostname = accessCertSettingsInputArray.hostname;
this.clientCertificateForwarding = accessCertSettingsInputArray.clientCertificateForwarding;
}

/**
* Instantiates a new builder.
*/
public Builder() {
}

/**
* Instantiates a new builder with required properties.
*
* @param hostname the hostname
* @param clientCertificateForwarding the clientCertificateForwarding
*/
public Builder(String hostname, Boolean clientCertificateForwarding) {
this.hostname = hostname;
this.clientCertificateForwarding = clientCertificateForwarding;
}

/**
* Builds a AccessCertSettingsInputArray.
*
* @return the new AccessCertSettingsInputArray instance
*/
public AccessCertSettingsInputArray build() {
return new AccessCertSettingsInputArray(this);
}

/**
* Set the hostname.
*
* @param hostname the hostname
* @return the AccessCertSettingsInputArray builder
*/
public Builder hostname(String hostname) {
this.hostname = hostname;
return this;
}

/**
* Set the clientCertificateForwarding.
*
* @param clientCertificateForwarding the clientCertificateForwarding
* @return the AccessCertSettingsInputArray builder
*/
public Builder clientCertificateForwarding(Boolean clientCertificateForwarding) {
this.clientCertificateForwarding = clientCertificateForwarding;
return this;
}
}

protected AccessCertSettingsInputArray() { }

protected AccessCertSettingsInputArray(Builder builder) {
com.ibm.cloud.sdk.core.util.Validator.notNull(builder.hostname,
"hostname cannot be null");
com.ibm.cloud.sdk.core.util.Validator.notNull(builder.clientCertificateForwarding,
"clientCertificateForwarding cannot be null");
hostname = builder.hostname;
clientCertificateForwarding = builder.clientCertificateForwarding;
}

/**
* New builder.
*
* @return a AccessCertSettingsInputArray builder
*/
public Builder newBuilder() {
return new Builder(this);
}

/**
* Gets the hostname.
*
* @return the hostname
*/
public String hostname() {
return hostname;
}

/**
* Gets the clientCertificateForwarding.
*
* Whether to forward the client certificate.
*
* @return the clientCertificateForwarding
*/
public Boolean clientCertificateForwarding() {
return clientCertificateForwarding;
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
/*
* (C) Copyright IBM Corp. 2026.
*
* 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.networking.mtls.v1.model;

import java.util.List;

import com.ibm.cloud.sdk.core.service.model.GenericModel;

/**
* Access certificates settings response.
*/
public class AccessCertSettingsResp extends GenericModel {

protected Boolean success;
protected List<List<String>> errors;
protected List<List<String>> messages;
protected List<CertSettingsResult> result;

protected AccessCertSettingsResp() { }

/**
* Gets the success.
*
* Was operation successful.
*
* @return the success
*/
public Boolean isSuccess() {
return success;
}

/**
* Gets the errors.
*
* Array of errors encountered.
*
* @return the errors
*/
public List<List<String>> getErrors() {
return errors;
}

/**
* Gets the messages.
*
* Array of messages returned.
*
* @return the messages
*/
public List<List<String>> getMessages() {
return messages;
}

/**
* Gets the result.
*
* @return the result
*/
public List<CertSettingsResult> getResult() {
return result;
}
}

Loading