Class AwsMetadata (2.84.0)
public final class AwsMetadata extends GeneratedMessageV3 implements AwsMetadataOrBuilder
AWS metadata associated with the resource, only applicable if the finding's
cloud provider is Amazon Web Services.
Protobuf type google.cloud.securitycenter.v1.AwsMetadata
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int ACCOUNT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int ORGANIZATIONAL_UNITS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int ORGANIZATION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static AwsMetadata getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static AwsMetadata.Builder newBuilder()
public static AwsMetadata.Builder newBuilder(AwsMetadata prototype)
public static AwsMetadata parseDelimitedFrom(InputStream input)
public static AwsMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AwsMetadata parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static AwsMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AwsMetadata parseFrom(ByteString data)
public static AwsMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AwsMetadata parseFrom(CodedInputStream input)
public static AwsMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AwsMetadata parseFrom(InputStream input)
public static AwsMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AwsMetadata parseFrom(ByteBuffer data)
public static AwsMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<AwsMetadata> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
public AwsMetadata.AwsAccount getAccount()
The AWS account associated with the resource.
.google.cloud.securitycenter.v1.AwsMetadata.AwsAccount account = 4;
public AwsMetadata.AwsAccountOrBuilder getAccountOrBuilder()
The AWS account associated with the resource.
.google.cloud.securitycenter.v1.AwsMetadata.AwsAccount account = 4;
public AwsMetadata getDefaultInstanceForType()
public AwsMetadata.AwsOrganization getOrganization()
The AWS organization associated with the resource.
.google.cloud.securitycenter.v1.AwsMetadata.AwsOrganization organization = 2;
public AwsMetadata.AwsOrganizationOrBuilder getOrganizationOrBuilder()
The AWS organization associated with the resource.
.google.cloud.securitycenter.v1.AwsMetadata.AwsOrganization organization = 2;
public AwsMetadata.AwsOrganizationalUnit getOrganizationalUnits(int index)
A list of AWS organizational units associated with the resource, ordered
from lowest level (closest to the account) to highest level.
repeated .google.cloud.securitycenter.v1.AwsMetadata.AwsOrganizationalUnit organizational_units = 3;
Parameter |
Name |
Description |
index |
int
|
public int getOrganizationalUnitsCount()
A list of AWS organizational units associated with the resource, ordered
from lowest level (closest to the account) to highest level.
repeated .google.cloud.securitycenter.v1.AwsMetadata.AwsOrganizationalUnit organizational_units = 3;
Returns |
Type |
Description |
int |
|
public List<AwsMetadata.AwsOrganizationalUnit> getOrganizationalUnitsList()
A list of AWS organizational units associated with the resource, ordered
from lowest level (closest to the account) to highest level.
repeated .google.cloud.securitycenter.v1.AwsMetadata.AwsOrganizationalUnit organizational_units = 3;
public AwsMetadata.AwsOrganizationalUnitOrBuilder getOrganizationalUnitsOrBuilder(int index)
A list of AWS organizational units associated with the resource, ordered
from lowest level (closest to the account) to highest level.
repeated .google.cloud.securitycenter.v1.AwsMetadata.AwsOrganizationalUnit organizational_units = 3;
Parameter |
Name |
Description |
index |
int
|
public List<? extends AwsMetadata.AwsOrganizationalUnitOrBuilder> getOrganizationalUnitsOrBuilderList()
A list of AWS organizational units associated with the resource, ordered
from lowest level (closest to the account) to highest level.
repeated .google.cloud.securitycenter.v1.AwsMetadata.AwsOrganizationalUnit organizational_units = 3;
Returns |
Type |
Description |
List<? extends com.google.cloud.securitycenter.v1.AwsMetadata.AwsOrganizationalUnitOrBuilder> |
|
public Parser<AwsMetadata> getParserForType()
Overrides
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
public boolean hasAccount()
The AWS account associated with the resource.
.google.cloud.securitycenter.v1.AwsMetadata.AwsAccount account = 4;
Returns |
Type |
Description |
boolean |
Whether the account field is set.
|
public boolean hasOrganization()
The AWS organization associated with the resource.
.google.cloud.securitycenter.v1.AwsMetadata.AwsOrganization organization = 2;
Returns |
Type |
Description |
boolean |
Whether the organization field is set.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public AwsMetadata.Builder newBuilderForType()
protected AwsMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public AwsMetadata.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-11 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-11 UTC."],[],[]]