Skip to content
Closed
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2023.
* (C) Copyright IBM Corp. 2025.
*
* 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
Expand All @@ -10,6 +10,7 @@
* 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.security_and_compliance_center_api.v3.model;

import com.ibm.cloud.sdk.core.service.model.GenericModel;
Expand All @@ -23,16 +24,99 @@ public class Account extends GenericModel {
protected String name;
protected String type;

/**
* Builder.
*/
public static class Builder {
private String id;
private String name;
private String type;

/**
* Instantiates a new Builder from an existing Account instance.
*
* @param account the instance to initialize the Builder with
*/
private Builder(Account account) {
this.id = account.id;
this.name = account.name;
this.type = account.type;
}

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

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

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

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

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

protected Account() { }

protected Account(Builder builder) {
id = builder.id;
name = builder.name;
type = builder.type;
}

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

/**
* Gets the id.
*
* The account ID.
*
* @return the id
*/
public String getId() {
public String id() {
return id;
}

Expand All @@ -43,7 +127,7 @@ public String getId() {
*
* @return the name
*/
public String getName() {
public String name() {
return name;
}

Expand All @@ -54,7 +138,7 @@ public String getName() {
*
* @return the type
*/
public String getType() {
public String type() {
return type;
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
/*
* (C) Copyright IBM Corp. 2025.
*
* 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.security_and_compliance_center_api.v3.model;

import java.util.List;

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

/**
* Extended information for a report.
*/
public class AdditionalDetails extends GenericModel {

@SerializedName("created_by")
protected String createdBy;
protected List<String> labels;
protected List<Link> links;

protected AdditionalDetails() { }

/**
* Gets the createdBy.
*
* Identifies which entity created a report.
*
* @return the createdBy
*/
public String getCreatedBy() {
return createdBy;
}

/**
* Gets the labels.
*
* Classification for a report.
*
* @return the labels
*/
public List<String> getLabels() {
return labels;
}

/**
* Gets the links.
*
* URL.
*
* @return the links
*/
public List<Link> getLinks() {
return links;
}
}

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2023.
* (C) Copyright IBM Corp. 2025.
*
* 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
Expand All @@ -10,6 +10,7 @@
* 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.security_and_compliance_center_api.v3.model;

import com.google.gson.annotations.SerializedName;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2023.
* (C) Copyright IBM Corp. 2025.
*
* 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
Expand All @@ -10,6 +10,7 @@
* 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.security_and_compliance_center_api.v3.model;

import com.ibm.cloud.sdk.core.service.model.GenericModel;
Expand Down Expand Up @@ -73,15 +74,15 @@ public interface Operator {

protected String name;
protected String operator;
protected String value;
protected Object value;

/**
* Builder.
*/
public static class Builder {
private String name;
private String operator;
private String value;
private Object value;

/**
* Instantiates a new Builder from an existing AdditionalTargetAttribute instance.
Expand All @@ -100,6 +101,15 @@ private Builder(AdditionalTargetAttribute additionalTargetAttribute) {
public Builder() {
}

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

/**
* Builds a AdditionalTargetAttribute.
*
Expand Down Expand Up @@ -137,7 +147,7 @@ public Builder operator(String operator) {
* @param value the value
* @return the AdditionalTargetAttribute builder
*/
public Builder value(String value) {
public Builder value(Object value) {
this.value = value;
return this;
}
Expand All @@ -146,6 +156,8 @@ public Builder value(String value) {
protected AdditionalTargetAttribute() { }

protected AdditionalTargetAttribute(Builder builder) {
com.ibm.cloud.sdk.core.util.Validator.notNull(builder.operator,
"operator cannot be null");
name = builder.name;
operator = builder.operator;
value = builder.value;
Expand Down Expand Up @@ -185,11 +197,11 @@ public String operator() {
/**
* Gets the value.
*
* The value.
* The value can be of any type.
*
* @return the value
*/
public String value() {
public Object value() {
return value;
}
}
Expand Down
Loading
Loading