com.amazonaws.services.b2bi.model.CreateProfileResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-b2bi Show documentation
/*
* Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file 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.amazonaws.services.b2bi.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateProfileResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* Returns the unique, system-generated identifier for the profile.
*
*/
private String profileId;
/**
*
* Returns an Amazon Resource Name (ARN) for the profile.
*
*/
private String profileArn;
/**
*
* Returns the name of the profile, used to identify it.
*
*/
private String name;
/**
*
* Returns the name for the business associated with this profile.
*
*/
private String businessName;
/**
*
* Returns the phone number associated with the profile.
*
*/
private String phone;
/**
*
* Returns the email address associated with this customer profile.
*
*/
private String email;
/**
*
* Returns whether or not logging is turned on for this profile.
*
*/
private String logging;
/**
*
* Returns the name of the logging group.
*
*/
private String logGroupName;
/**
*
* Returns a timestamp representing the time the profile was created.
*
*/
private java.util.Date createdAt;
/**
*
* Returns the unique, system-generated identifier for the profile.
*
*
* @param profileId
* Returns the unique, system-generated identifier for the profile.
*/
public void setProfileId(String profileId) {
this.profileId = profileId;
}
/**
*
* Returns the unique, system-generated identifier for the profile.
*
*
* @return Returns the unique, system-generated identifier for the profile.
*/
public String getProfileId() {
return this.profileId;
}
/**
*
* Returns the unique, system-generated identifier for the profile.
*
*
* @param profileId
* Returns the unique, system-generated identifier for the profile.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateProfileResult withProfileId(String profileId) {
setProfileId(profileId);
return this;
}
/**
*
* Returns an Amazon Resource Name (ARN) for the profile.
*
*
* @param profileArn
* Returns an Amazon Resource Name (ARN) for the profile.
*/
public void setProfileArn(String profileArn) {
this.profileArn = profileArn;
}
/**
*
* Returns an Amazon Resource Name (ARN) for the profile.
*
*
* @return Returns an Amazon Resource Name (ARN) for the profile.
*/
public String getProfileArn() {
return this.profileArn;
}
/**
*
* Returns an Amazon Resource Name (ARN) for the profile.
*
*
* @param profileArn
* Returns an Amazon Resource Name (ARN) for the profile.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateProfileResult withProfileArn(String profileArn) {
setProfileArn(profileArn);
return this;
}
/**
*
* Returns the name of the profile, used to identify it.
*
*
* @param name
* Returns the name of the profile, used to identify it.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* Returns the name of the profile, used to identify it.
*
*
* @return Returns the name of the profile, used to identify it.
*/
public String getName() {
return this.name;
}
/**
*
* Returns the name of the profile, used to identify it.
*
*
* @param name
* Returns the name of the profile, used to identify it.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateProfileResult withName(String name) {
setName(name);
return this;
}
/**
*
* Returns the name for the business associated with this profile.
*
*
* @param businessName
* Returns the name for the business associated with this profile.
*/
public void setBusinessName(String businessName) {
this.businessName = businessName;
}
/**
*
* Returns the name for the business associated with this profile.
*
*
* @return Returns the name for the business associated with this profile.
*/
public String getBusinessName() {
return this.businessName;
}
/**
*
* Returns the name for the business associated with this profile.
*
*
* @param businessName
* Returns the name for the business associated with this profile.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateProfileResult withBusinessName(String businessName) {
setBusinessName(businessName);
return this;
}
/**
*
* Returns the phone number associated with the profile.
*
*
* @param phone
* Returns the phone number associated with the profile.
*/
public void setPhone(String phone) {
this.phone = phone;
}
/**
*
* Returns the phone number associated with the profile.
*
*
* @return Returns the phone number associated with the profile.
*/
public String getPhone() {
return this.phone;
}
/**
*
* Returns the phone number associated with the profile.
*
*
* @param phone
* Returns the phone number associated with the profile.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateProfileResult withPhone(String phone) {
setPhone(phone);
return this;
}
/**
*
* Returns the email address associated with this customer profile.
*
*
* @param email
* Returns the email address associated with this customer profile.
*/
public void setEmail(String email) {
this.email = email;
}
/**
*
* Returns the email address associated with this customer profile.
*
*
* @return Returns the email address associated with this customer profile.
*/
public String getEmail() {
return this.email;
}
/**
*
* Returns the email address associated with this customer profile.
*
*
* @param email
* Returns the email address associated with this customer profile.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateProfileResult withEmail(String email) {
setEmail(email);
return this;
}
/**
*
* Returns whether or not logging is turned on for this profile.
*
*
* @param logging
* Returns whether or not logging is turned on for this profile.
* @see Logging
*/
public void setLogging(String logging) {
this.logging = logging;
}
/**
*
* Returns whether or not logging is turned on for this profile.
*
*
* @return Returns whether or not logging is turned on for this profile.
* @see Logging
*/
public String getLogging() {
return this.logging;
}
/**
*
* Returns whether or not logging is turned on for this profile.
*
*
* @param logging
* Returns whether or not logging is turned on for this profile.
* @return Returns a reference to this object so that method calls can be chained together.
* @see Logging
*/
public CreateProfileResult withLogging(String logging) {
setLogging(logging);
return this;
}
/**
*
* Returns whether or not logging is turned on for this profile.
*
*
* @param logging
* Returns whether or not logging is turned on for this profile.
* @return Returns a reference to this object so that method calls can be chained together.
* @see Logging
*/
public CreateProfileResult withLogging(Logging logging) {
this.logging = logging.toString();
return this;
}
/**
*
* Returns the name of the logging group.
*
*
* @param logGroupName
* Returns the name of the logging group.
*/
public void setLogGroupName(String logGroupName) {
this.logGroupName = logGroupName;
}
/**
*
* Returns the name of the logging group.
*
*
* @return Returns the name of the logging group.
*/
public String getLogGroupName() {
return this.logGroupName;
}
/**
*
* Returns the name of the logging group.
*
*
* @param logGroupName
* Returns the name of the logging group.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateProfileResult withLogGroupName(String logGroupName) {
setLogGroupName(logGroupName);
return this;
}
/**
*
* Returns a timestamp representing the time the profile was created.
*
*
* @param createdAt
* Returns a timestamp representing the time the profile was created.
*/
public void setCreatedAt(java.util.Date createdAt) {
this.createdAt = createdAt;
}
/**
*
* Returns a timestamp representing the time the profile was created.
*
*
* @return Returns a timestamp representing the time the profile was created.
*/
public java.util.Date getCreatedAt() {
return this.createdAt;
}
/**
*
* Returns a timestamp representing the time the profile was created.
*
*
* @param createdAt
* Returns a timestamp representing the time the profile was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateProfileResult withCreatedAt(java.util.Date createdAt) {
setCreatedAt(createdAt);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getProfileId() != null)
sb.append("ProfileId: ").append(getProfileId()).append(",");
if (getProfileArn() != null)
sb.append("ProfileArn: ").append(getProfileArn()).append(",");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getBusinessName() != null)
sb.append("BusinessName: ").append(getBusinessName()).append(",");
if (getPhone() != null)
sb.append("Phone: ").append("***Sensitive Data Redacted***").append(",");
if (getEmail() != null)
sb.append("Email: ").append("***Sensitive Data Redacted***").append(",");
if (getLogging() != null)
sb.append("Logging: ").append(getLogging()).append(",");
if (getLogGroupName() != null)
sb.append("LogGroupName: ").append(getLogGroupName()).append(",");
if (getCreatedAt() != null)
sb.append("CreatedAt: ").append(getCreatedAt());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateProfileResult == false)
return false;
CreateProfileResult other = (CreateProfileResult) obj;
if (other.getProfileId() == null ^ this.getProfileId() == null)
return false;
if (other.getProfileId() != null && other.getProfileId().equals(this.getProfileId()) == false)
return false;
if (other.getProfileArn() == null ^ this.getProfileArn() == null)
return false;
if (other.getProfileArn() != null && other.getProfileArn().equals(this.getProfileArn()) == false)
return false;
if (other.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == false)
return false;
if (other.getBusinessName() == null ^ this.getBusinessName() == null)
return false;
if (other.getBusinessName() != null && other.getBusinessName().equals(this.getBusinessName()) == false)
return false;
if (other.getPhone() == null ^ this.getPhone() == null)
return false;
if (other.getPhone() != null && other.getPhone().equals(this.getPhone()) == false)
return false;
if (other.getEmail() == null ^ this.getEmail() == null)
return false;
if (other.getEmail() != null && other.getEmail().equals(this.getEmail()) == false)
return false;
if (other.getLogging() == null ^ this.getLogging() == null)
return false;
if (other.getLogging() != null && other.getLogging().equals(this.getLogging()) == false)
return false;
if (other.getLogGroupName() == null ^ this.getLogGroupName() == null)
return false;
if (other.getLogGroupName() != null && other.getLogGroupName().equals(this.getLogGroupName()) == false)
return false;
if (other.getCreatedAt() == null ^ this.getCreatedAt() == null)
return false;
if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getProfileId() == null) ? 0 : getProfileId().hashCode());
hashCode = prime * hashCode + ((getProfileArn() == null) ? 0 : getProfileArn().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getBusinessName() == null) ? 0 : getBusinessName().hashCode());
hashCode = prime * hashCode + ((getPhone() == null) ? 0 : getPhone().hashCode());
hashCode = prime * hashCode + ((getEmail() == null) ? 0 : getEmail().hashCode());
hashCode = prime * hashCode + ((getLogging() == null) ? 0 : getLogging().hashCode());
hashCode = prime * hashCode + ((getLogGroupName() == null) ? 0 : getLogGroupName().hashCode());
hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
return hashCode;
}
@Override
public CreateProfileResult clone() {
try {
return (CreateProfileResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}