com.ibm.cloud.platform_services.user_management.v1.model.RemoveUserOptions Maven / Gradle / Ivy
/*
* (C) Copyright IBM Corp. 2023.
*
* 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.platform_services.user_management.v1.model;
import com.ibm.cloud.sdk.core.service.model.GenericModel;
/**
* The removeUser options.
*/
public class RemoveUserOptions extends GenericModel {
protected String accountId;
protected String iamId;
protected String includeActivity;
/**
* Builder.
*/
public static class Builder {
private String accountId;
private String iamId;
private String includeActivity;
/**
* Instantiates a new Builder from an existing RemoveUserOptions instance.
*
* @param removeUserOptions the instance to initialize the Builder with
*/
private Builder(RemoveUserOptions removeUserOptions) {
this.accountId = removeUserOptions.accountId;
this.iamId = removeUserOptions.iamId;
this.includeActivity = removeUserOptions.includeActivity;
}
/**
* Instantiates a new builder.
*/
public Builder() {
}
/**
* Instantiates a new builder with required properties.
*
* @param accountId the accountId
* @param iamId the iamId
*/
public Builder(String accountId, String iamId) {
this.accountId = accountId;
this.iamId = iamId;
}
/**
* Builds a RemoveUserOptions.
*
* @return the new RemoveUserOptions instance
*/
public RemoveUserOptions build() {
return new RemoveUserOptions(this);
}
/**
* Set the accountId.
*
* @param accountId the accountId
* @return the RemoveUserOptions builder
*/
public Builder accountId(String accountId) {
this.accountId = accountId;
return this;
}
/**
* Set the iamId.
*
* @param iamId the iamId
* @return the RemoveUserOptions builder
*/
public Builder iamId(String iamId) {
this.iamId = iamId;
return this;
}
/**
* Set the includeActivity.
*
* @param includeActivity the includeActivity
* @return the RemoveUserOptions builder
*/
public Builder includeActivity(String includeActivity) {
this.includeActivity = includeActivity;
return this;
}
}
protected RemoveUserOptions() { }
protected RemoveUserOptions(Builder builder) {
com.ibm.cloud.sdk.core.util.Validator.notEmpty(builder.accountId,
"accountId cannot be empty");
com.ibm.cloud.sdk.core.util.Validator.notEmpty(builder.iamId,
"iamId cannot be empty");
accountId = builder.accountId;
iamId = builder.iamId;
includeActivity = builder.includeActivity;
}
/**
* New builder.
*
* @return a RemoveUserOptions builder
*/
public Builder newBuilder() {
return new Builder(this);
}
/**
* Gets the accountId.
*
* The account ID of the specified user.
*
* @return the accountId
*/
public String accountId() {
return accountId;
}
/**
* Gets the iamId.
*
* The user's IAM ID.
*
* @return the iamId
*/
public String iamId() {
return iamId;
}
/**
* Gets the includeActivity.
*
* Include activity information of the user, such as the last authentication timestamp.
*
* @return the includeActivity
*/
public String includeActivity() {
return includeActivity;
}
}