software.amazon.awssdk.services.connectcampaigns.endpoints.internal.FatScope Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of connectcampaigns Show documentation
Show all versions of connectcampaigns Show documentation
The AWS Java SDK for Connect Campaigns module holds the client classes that are used for
communicating with Connect Campaigns.
/*
* Copyright 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 software.amazon.awssdk.services.connectcampaigns.endpoints.internal;
import java.util.HashMap;
import software.amazon.awssdk.annotations.SdkInternalApi;
@SdkInternalApi
public final class FatScope {
private final HashMap types;
private final HashMap facts;
public FatScope(HashMap types, HashMap facts) {
this.types = types;
this.facts = facts;
}
public FatScope() {
this(new HashMap<>(), new HashMap<>());
}
public HashMap types() {
return types;
}
public HashMap facts() {
return facts;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
FatScope> fatScope = (FatScope>) o;
if (types != null ? !types.equals(fatScope.types) : fatScope.types != null) {
return false;
}
return facts != null ? facts.equals(fatScope.facts) : fatScope.facts == null;
}
@Override
public int hashCode() {
int result = types != null ? types.hashCode() : 0;
result = 31 * result + (facts != null ? facts.hashCode() : 0);
return result;
}
@Override
public String toString() {
return "FatScope[" + "types=" + types + ", " + "facts=" + facts + ']';
}
}