All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.deadline.model.FarmMember Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWSDeadlineCloud module holds the client classes that are used for communicating with AWSDeadlineCloud Service

The newest version!
/*
 * 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.deadline.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The member of a farm. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class FarmMember implements Serializable, Cloneable, StructuredPojo { /** *

* The farm ID of the farm member. *

*/ private String farmId; /** *

* The identity store ID of the farm member. *

*/ private String identityStoreId; /** *

* The farm member's membership level. *

*/ private String membershipLevel; /** *

* The principal ID of the farm member. *

*/ private String principalId; /** *

* The principal type of the farm member. *

*/ private String principalType; /** *

* The farm ID of the farm member. *

* * @param farmId * The farm ID of the farm member. */ public void setFarmId(String farmId) { this.farmId = farmId; } /** *

* The farm ID of the farm member. *

* * @return The farm ID of the farm member. */ public String getFarmId() { return this.farmId; } /** *

* The farm ID of the farm member. *

* * @param farmId * The farm ID of the farm member. * @return Returns a reference to this object so that method calls can be chained together. */ public FarmMember withFarmId(String farmId) { setFarmId(farmId); return this; } /** *

* The identity store ID of the farm member. *

* * @param identityStoreId * The identity store ID of the farm member. */ public void setIdentityStoreId(String identityStoreId) { this.identityStoreId = identityStoreId; } /** *

* The identity store ID of the farm member. *

* * @return The identity store ID of the farm member. */ public String getIdentityStoreId() { return this.identityStoreId; } /** *

* The identity store ID of the farm member. *

* * @param identityStoreId * The identity store ID of the farm member. * @return Returns a reference to this object so that method calls can be chained together. */ public FarmMember withIdentityStoreId(String identityStoreId) { setIdentityStoreId(identityStoreId); return this; } /** *

* The farm member's membership level. *

* * @param membershipLevel * The farm member's membership level. * @see MembershipLevel */ public void setMembershipLevel(String membershipLevel) { this.membershipLevel = membershipLevel; } /** *

* The farm member's membership level. *

* * @return The farm member's membership level. * @see MembershipLevel */ public String getMembershipLevel() { return this.membershipLevel; } /** *

* The farm member's membership level. *

* * @param membershipLevel * The farm member's membership level. * @return Returns a reference to this object so that method calls can be chained together. * @see MembershipLevel */ public FarmMember withMembershipLevel(String membershipLevel) { setMembershipLevel(membershipLevel); return this; } /** *

* The farm member's membership level. *

* * @param membershipLevel * The farm member's membership level. * @return Returns a reference to this object so that method calls can be chained together. * @see MembershipLevel */ public FarmMember withMembershipLevel(MembershipLevel membershipLevel) { this.membershipLevel = membershipLevel.toString(); return this; } /** *

* The principal ID of the farm member. *

* * @param principalId * The principal ID of the farm member. */ public void setPrincipalId(String principalId) { this.principalId = principalId; } /** *

* The principal ID of the farm member. *

* * @return The principal ID of the farm member. */ public String getPrincipalId() { return this.principalId; } /** *

* The principal ID of the farm member. *

* * @param principalId * The principal ID of the farm member. * @return Returns a reference to this object so that method calls can be chained together. */ public FarmMember withPrincipalId(String principalId) { setPrincipalId(principalId); return this; } /** *

* The principal type of the farm member. *

* * @param principalType * The principal type of the farm member. * @see PrincipalType */ public void setPrincipalType(String principalType) { this.principalType = principalType; } /** *

* The principal type of the farm member. *

* * @return The principal type of the farm member. * @see PrincipalType */ public String getPrincipalType() { return this.principalType; } /** *

* The principal type of the farm member. *

* * @param principalType * The principal type of the farm member. * @return Returns a reference to this object so that method calls can be chained together. * @see PrincipalType */ public FarmMember withPrincipalType(String principalType) { setPrincipalType(principalType); return this; } /** *

* The principal type of the farm member. *

* * @param principalType * The principal type of the farm member. * @return Returns a reference to this object so that method calls can be chained together. * @see PrincipalType */ public FarmMember withPrincipalType(PrincipalType principalType) { this.principalType = principalType.toString(); 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 (getFarmId() != null) sb.append("FarmId: ").append(getFarmId()).append(","); if (getIdentityStoreId() != null) sb.append("IdentityStoreId: ").append(getIdentityStoreId()).append(","); if (getMembershipLevel() != null) sb.append("MembershipLevel: ").append(getMembershipLevel()).append(","); if (getPrincipalId() != null) sb.append("PrincipalId: ").append(getPrincipalId()).append(","); if (getPrincipalType() != null) sb.append("PrincipalType: ").append(getPrincipalType()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof FarmMember == false) return false; FarmMember other = (FarmMember) obj; if (other.getFarmId() == null ^ this.getFarmId() == null) return false; if (other.getFarmId() != null && other.getFarmId().equals(this.getFarmId()) == false) return false; if (other.getIdentityStoreId() == null ^ this.getIdentityStoreId() == null) return false; if (other.getIdentityStoreId() != null && other.getIdentityStoreId().equals(this.getIdentityStoreId()) == false) return false; if (other.getMembershipLevel() == null ^ this.getMembershipLevel() == null) return false; if (other.getMembershipLevel() != null && other.getMembershipLevel().equals(this.getMembershipLevel()) == false) return false; if (other.getPrincipalId() == null ^ this.getPrincipalId() == null) return false; if (other.getPrincipalId() != null && other.getPrincipalId().equals(this.getPrincipalId()) == false) return false; if (other.getPrincipalType() == null ^ this.getPrincipalType() == null) return false; if (other.getPrincipalType() != null && other.getPrincipalType().equals(this.getPrincipalType()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFarmId() == null) ? 0 : getFarmId().hashCode()); hashCode = prime * hashCode + ((getIdentityStoreId() == null) ? 0 : getIdentityStoreId().hashCode()); hashCode = prime * hashCode + ((getMembershipLevel() == null) ? 0 : getMembershipLevel().hashCode()); hashCode = prime * hashCode + ((getPrincipalId() == null) ? 0 : getPrincipalId().hashCode()); hashCode = prime * hashCode + ((getPrincipalType() == null) ? 0 : getPrincipalType().hashCode()); return hashCode; } @Override public FarmMember clone() { try { return (FarmMember) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.deadline.model.transform.FarmMemberMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy